1 Reply Latest reply: Jun 4, 2014 2:22 AM by 1515595 RSS

    Siebel Employee Organization set by Java API

    1515595

      Hi all,


      Using Siebel 8.1.1.5


       

      I am setting the Employee organization value to 2 organizations.

      1. Default Org

      2. Organization Company1

       

      PFB the java code snippet,

       

      SiebelBusObject m_busObject = m_dataBean.getBusObject("Employee");

      SiebelBusComp m_busComp = m_busObject.getBusComp("Employee");

      m_busComp.clearToQuery();

      m_busComp.setViewMode(3);

      m_busComp.activateField("Login Name");

      m_busComp.setSearchSpec("Login Name","TESTUSER01");

      m_busComp.executeQuery2(true,true);

      if(m_busComp.firstRecord()){

      SiebelBusComp m_busComp1 = m_busComp.getMVGBusComp("Employee Organization");

      m_busComp1.activateField("Employee Organization");

      m_busComp1.setFieldValue("Employee Organization", "Organization Company1");

      m_busComp1.associate(true);

      m_busComp1.pick();

      m_busComp1.writeRecord();

      }

       

      This is not working.

      Can you please help me with this?

       

      There are no errors, the code gets executed. However, the values are not set.