Error creating and setting attributes on Childnode

I'm trying to get my head around on how to dynamically create childnodes and attributes. I'm trying to create this structure.
Target Structure
<root node>
     + Parents (c=1..1, s=true)
     -- mother
     -- father
     -- + Children (c=0..n, s=false)
     ----- name
     ----- age
I've written the sample code below.
I get a  com.sap.tc.webdynpro.progmodel.context.ContextException: NodeElement(.TestView.Parents): unknown attribute name
when I try and execute   child1.setAttributeValue("name", "Madison");
I suspect my problem is here
IWDNode childElement = wdContext.getChildNode("Parents.Children",IWDNode.LEAD_SELECTION);
because it returns null.
What am I doing wrong
Thanks for your help.
/Greg
     // Dynamically create a context node
     IWDNodeInfo parents = wdContext.getNodeInfo().addChild(
               "Parents",              // Name of node
               null,                    // elementClass
               true,                    // singleton
               true,                  // mandatory                           
               false,                 // multiple
               true,                  // mandatorySelection
               false,                 // multipleSelection
               true,                  // initializeLeadSelection
               null,
               null,
               null);
     parents.addAttribute("mother", "ddic:com.sap.dictionary.string");
     parents.addAttribute("father", "ddic:com.sap.dictionary.string");
    IWDNodeInfo children = wdContext.getChildNode("Parents",0).getNodeInfo().addChild(
              "Children",            // Name of node
               null,                    // elementClass
               false,                    // singleton
               true,                  // mandatory                           
               true,                  // multiple
               true,                  // mandatorySelection
               false,                 // multipleSelection
               true,                  // initializeLeadSelection
               null,
               null,
               null);
     children.addAttribute("name", "ddic:com.sap.dictionary.string");
     children.addAttribute("age", "ddic:com.sap.dictionary.string");
        IWDNode parentElement = wdContext.getChildNode("Parents",0);        
    IWDNodeElement p = parentElement.createElement();
     p.setAttributeValue("mother", "Amy");
     p.setAttributeValue("father", "Greg");
    IWDNode childElement = wdContext.getChildNode("Parents.Children",IWDNode.LEAD_SELECTION);
     IWDNodeElement child1 = parentElement.createElement();
    child1.setAttributeValue("name", "Madison");
     child1.setAttributeValue("age", "2");
     IWDNodeElement child2 = parentElement.createElement();
     child2.setAttributeValue("name", "Peyton");
     child2.setAttributeValue("age", "1");
Message was edited by:
        Greg Preston

Hi Greg,
it must be
IWDNode parentNode = wdContext.getChildNode("Parents",0);
IWDNodeElement p = parentNode.createElement();
p.setAttributeValue("mother", "Amy");
p.setAttributeValue("father", "Greg");
parentNode.addElement(p);
IWDNode childNode = parentNode.getChildNode("Children", IWDNode.LEAD_SELECTION);
IWDNodeElement child1 = childNode.createElement();
child1.setAttributeValue("name", "Madison");
child1.setAttributeValue("age", "2");
childNode.addElement(child1);
IWDNodeElement child2 = childNode.createElement();
child2.setAttributeValue("name", "Peyton");
child2.setAttributeValue("age", "1");
childNode.addElement(child2);

Similar Messages

  • Overriding the method EntityImpl.create() and setting attribute values?

    Hello,
    I need to set a date to '01/01/2001' if field dateto is left blank when user is inserting a new record.
    How to you do that please ?

    The easiest way would be to set the date as default in the EO. The date then is visible when you create a new row. If the use overwrites it you get the new date, if he leafs hte date untouched you get the default date.
    Timo

  • Need to add row and set attribute value on pageload

    Guys,
    On my page based on the pageflowscope variable value, i need to add a row for master and one row for detail viewobject and set attribute values. (Some of the attribute are LOV and Checkboxes as well)
    I am using following code to create records.....records are being added but i am not able to set the attributes
    OperationBinding ob;
    ob = ADFUtil.findOperationBinding("Create");
    ob.execute();
    ob = ADFUtil.findOperationBinding("CreateInsert3");
    ob.execute();
    I am using following code to set the attributes value
    DCIteratorBinding dc1 = ADFUtil.getBindingIterator("firstiterator");
    DCIteratorBinding dc = ADFUtil.getBindingIterator("seconditerator");
    row1=dc1.getCurrentRow();
    row=dc.getCurrentRow();
    row.setAttribute("activest","A");
    row1.setAttribute("type","dc14");
    Anything i am doing wrong here or any suggestion to try is greatly appreciated....

    Vinod,
    Yes commit button is there and yes its also has entry in pagedef...
    When I open the same page on edit mode and i can edit regular record and save them
    Problem is that when i open the page on new mode and try to add rows on page load..... and setting values as described above.... save button somehow doesn't work...
    seems like after i add the rows on the fly, i need to refresh the binding?
    any help is greatly appreciated....
    thank you guys

  • Totorial: Create and set-up Campaign To-Dos

    Hi,
    I'm looking for tutorials, videos or any other form of information on how to create and set-up campaign to-dos.
    I searched in web but did not find anything.
    Please help
    thanks

    Try these as well. Standard video demos by SAP.
    SAP CRM 2007 - Campaign Automation Video demo
    http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/20c7820f-3a99-2b10-67a9-93c5b0c58681
    SAP CRM 7.0 - Marketing End-to-End Part 3: Campaign Design
    http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/e039723d-abc7-2c10-fc89-bc241e2806f2&overridelayout=true
    rgrds,
    Randhir

  • Create and set key TNS_ADMIN?

    1. Create a directory to be used for the Oracle Net configuration files, and set
    the TNS_ADMIN variable to point to this. It doesn’t matter where the direc-
    tory is, as long as the Oracle user has permission to create, read, and write it.
    On Linux:
    mkdir /u01/oracle/net
    export TNS_ADMIN=/u01/oracle/net
    Ensure that all work from now is done from a session where the variable has
    been set.
    On Windows:
    mkdir d:\oracle\net
    Create and set the key TNS_ADMIN as a string variable in the registry in
    the Oracle Home branch. This will typically be
    HKEY_LOCAL_MACHINE\SOFTWARE\ORACLE\KEY_OraDb1g_home1
    OK...in my little window CLI window I did the mkdir. HOW..HOW do I create and set the key TNS_ADMIN as a string variable. I have tried a few ways but I don't think i am doing it correctly. Please help.
    Donna

    Ed is actually one of the nicer, more helpful people here. Please understand, there are a lot of posts from people who expect volunteers to do their work for them, including students who expect people to do their schoolwork for them. That is highly discouraged. We do want to help, so that often winds up being a pointer to how to find the answer (the "teach a person to fish" idea). Please don't take it personally. There are nasty and rude people here, but they normally pop up reactively, in response to obvious abusers. What is obvious to some people is not to others.
    When someone asks for more information, you should give it, they are trying to help, not generally being passive-aggressive. See http://www.catb.org/esr/faqs/smart-questions.html
    People are here for all different reasons, and there is a lot of depth to their experience. You have a learning curve ahead, both for how to deal with Oracle and how to do deal with online communities. Patience, dedication and hard work pay off. Most have made the mistakes you are going to make, so consider advice, even apparently rude advice, helpful.
    You only have to create one account. You then log on using it again. It actually spreads across many different sites (this is called SSO, Single Sign On).
    Edit: By the way, sb gave the correct answer 5 minutes after your first post.
    Edited by: jgarry on Oct 30, 2012 10:57 AM

  • How to create and share attributes or variables in Standard WebDynpro?

    Tremendous 2010 guys!
    I'm having trouble about a Web Dynpro ABAP application. It uses two Web Dynpro components: FITE_VC_GENERAL_DATA and FITV_VC_COST_ASSIGNMENT, and the users would like to delete showed-in-text-field default info in the first View (contained in FITE_VC_GENERAL_DATA) but they want the user provides his/her own info in a second view by a window (view, contained in the second web Dynpro component FITV_VC_COST_ASSIGNMENT) that appears after clicking a button in the fisrt view. So, I want to declare an attribute or variable (a flag) in the second Web dynpro component that is to be copied or transmitted or exported at the first Web dynpro component to indicate "The user already used the second Web Dynpro component", and thus, to avoid an enhancement point I set in the first Web Dynpro having effect and delete the valid data entered by user (because in the begining, yes, I want to delete the data, but once the user writes his/her data, I need a FLAG to know it).
    Really I am a newbie, even a dummy in Web Dynpro ABAP, I dont know if it is possible to declare new attributes in a Standard Web Dynpro Component (but I used an enhancement point to declare a char variable inside a method, but it is only local and I cant communicate it to another WD component). Because it is OO ABAP, I know it is not possible to declare Global data usable by various Web Dynpro Components, isnt it?
    Beyond, If I could create my own attributes in the second Standard Web Dynpro Component, How I should export them to the first Web Dynpro Component?
    I was wondering if it would be a good idea to use a transparent table to store my flag and use it again when the run time is on the first Web Dynpro component... Or use ABAP or SAP Memories... Have mercy, help me please!

    Hi Parga,
    You need to declare the variable at Interface controller and need to map this at the context level.
    Like a variable declared at web dynpro component context level can be used among all views.
    every web dynpro component have an Interface component. this can be used in other components where this perticular component is used it is also have a Context.
    For more info Take Usage of Component Controller Examples.
    [Check this thead|http://help.sap.com/saphelp_nw70/helpdata/en/3a/165da11551994db913f56829f8f3f1/frameset.htm]MPUSAGE
    WDR_TEST_CMPUSAGE_CI1
    WDR_TEST_CMPUSAGE_CI2
    WDR_TEST_CMPUSAGE1
    WDR_TEST_CMPUSAGE2
    WDR_TEST_CMPUSAGE3
    WDR_TEST_CMPUSAGE4
    WDR_TEST_CMPUSAGE5
    WDR_TEST_REF_CMP_USAGE_CI
    WDR_TEST_USAGE_GROUPS_CI
    WDT_COMPONENTDETAIL
    WDT_COMPONENTUSAGECheerz
    Ram

  • Is it possible to get and Set attribute value in OVD through JNDI or Java

    Hi,
    I have a requirement to read an OVD Attribute value from a Jsp Page and set the Attribute value in OVD.
    Is it possible to achieve it through JAVA/JNDI code, Any pointers or code snipplet are welcome.
    Thanks
    Ak

    Use JNDI with LDAP provider or another LDAP java library, plenty of examples on google

  • Error message and set cursor field in subscreen

    hey ,
    i have a program with main screen 500 and many subscreens 501,502 and so own .
    when i  want to validate wrong input in a field and set message type 'E' in the PAI of the subscreen the program
    raise the message and exit from the program .
    if i try to put the message in the PBO of the subscreen it dosn't exit but after the message the program dosn't flow to
    command SET CURSOR FIELD that i wrote after the message .
    how can i solve this ?
    is there somthing that i'm missing in the basic code flow of the program ?
    ( screen 500 PBO - PAI ->  SUBSCREEN 50x PBO - PAI )
    best regards
    ASA

    hello and thanks for the answer
    let me  clarify my problem :
    i want to issue a message ( type e or i ) only if some fields are null and the user pressed on SAVE .
    when i'm in the tab-strip and writing error message in :
    PAI :
    chain.
    field XXX
    field YYY
    module issue_warning_message on chain-request.
    endchain.
    in  module issue_warning_message :  if XXX is initial --> message type E --> set cursor field XXX.
    here i get the message and cursor is set.
    when i try to post the message in without chain or any events :
    module user_command_tab502 .
    the message is issued and it exit the program if the type is e and if type message is I the cursor is not set .
    please advice
    ASA

  • Grouping and  setting attributes by group in data modeler

    Hi,
    I wanted the enhancement to hide foreign keys but until that comes I was thinking I could simply set all the foreign key I want not visible to a colour of white, which worked quite well.
    For the tables that are basically System such as Language Codes - I defined a Classification Type of System and set them to an identifiable colour to show they are connected but the connections will not be visible on the diagram.
    Then I tried to do the same for the Foreign keys but there is no way of setting a standard colour which can be changed.
    So I had to set each one to white, which is a pain but then I have white marks across my diagram which I may be able to live
    with. In most diagrammer mappers they have a send to back which would solve this - please???
    But then I come to the problem that I can't then see them to change them back as they are white ;)
    Is there any grouping mechanism that I can group together foreign keys so I can put in this temporary fix?
    So I guess I'm on
    1. Classification for Foreign Keys - any way to do this?
    2. Grouping and Sending groups to the front or back of the diagram.
    Thanks,
    p.

    Hi,
    you can use dynamic properties to build your own functionality - there is dynamic properties page for each object. you can create them using UI and use them in scripting.
    the following script uses dynamic property "cl_type" and check for value "t2"
    fkeys =  model.getFKIndexAssociationSet().toArray();
    //create color using integer
    color =   new java.awt.Color(16724838);
    for (var i = 0; i < fkeys.length; i++) {
    fk = fkeys;
    cl_type = fk.getProperty("cl_type");
    if(cl_type!=null){
    if(cl_type.indexOf("t2")==0){
    fk.setUseDefaultColor(false);
    fk.setBackgroundColor(color);
    fk.resetEdgeParams();
    }else{
    // set for other types or reset to default
    fk.setUseDefaultColor(true);
    fk.setBackgroundColor(null);
    fk.resetEdgeParams();
    you need to transform RGB color to integer - I found calculator here http://www.shodor.org/stella2java/rgbint.html
    Philip                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Error Creating Document Set in a Custom Sandboxed Action

    I created a custom workflow sandboxed action, and one of the lines is required to create a new document set in a document library.
    The code works when i run it in a console application. The document set is created successfully. 
    However, it doesn't in the workflow. Sadly since i am lost about how on earth it is to debug my custom action, all i get is error and nothing specifically.
    i have been on this for over 10 hours now.
    I would appreciate your help.
    Thanks

    Hi Anjorin,
    The DocumentSet class is not available in Sandbox.
     You have to create a Farm solution.
    If the class is available in sandbox class, you will find the description below in SDK.
    Available in Sandboxed Solutions: Yes
    http://msdn.microsoft.com/en-us/library/microsoft.office.documentmanagement.documentsets.documentset.aspx

  • Error creating and modifying protection groups

    When modifying or creating a new protection group I periodically get a DPM 945 event with this text:
    <FatalServiceError><__System><ID>19</ID><Seq>27</Seq><TimeCreated>1/6/2012 4:54:22 AM</TimeCreated><Source>DpmThreadPool.cs</Source><Line>163</Line><HasError>True</HasError></__System><ExceptionType>SqlException</ExceptionType><ExceptionMessage>Cannot
    insert the value NULL into column 'owner_sid', table 'msdb.dbo.sysjobs'; column does not allow nulls. INSERT fails.
    The statement has been terminated.</ExceptionMessage><ExceptionDetails>System.Data.SqlClient.SqlException: Cannot insert the value NULL into column 'owner_sid', table 'msdb.dbo.sysjobs'; column does not allow nulls. INSERT fails.
    The error seems to have the following pattern:
    1. I log on and launch the MMC.  Modification of the protection group works.
    2. Try to do a second modification and the error occurs.
    3. Log out and log back in, relaunch the MMC and I can modify the protection group. 
    Seems like a bug?
    Rob

    In further testing with the Release Candidate...here is what is happening:
    1. Any change  to a protection group or creating a new one causes the error.
    2. It does not happen the first time when modifying a protection group.  Only subsequent modifications.
    3. It happens with protection groups with and without Exchange, a change from my earlier statement.
    Here are the event logs that are generated:
    The description for Event ID 955 from source MSDPM cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event: 
    The consistency check resulted in the following changes to SQL Server Agent schedules: Schedules added: 5 Schedules removed: 0 Schedules updated: 0.  
    Problem Details:
    <ConsistencyCheck><__System><ID>26</ID><Seq>15</Seq><TimeCreated>1/20/2012 6:56:13 PM</TimeCreated><Source>SchedulerImpl.cs</Source><Line>719</Line><HasError>True</HasError></__System><Tags><JobSchedule
    /></Tags></ConsistencyCheck>
    the message resource is present but the message is not found in the string/message table
    The description for Event ID 955 from source MSDPM cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event: 
    The consistency check resulted in the following changes to SQL Server Agent schedules: Schedules added: 0 Schedules removed: 10 Schedules updated: 0.  
    Problem Details:
    <ConsistencyCheck><__System><ID>26</ID><Seq>1228</Seq><TimeCreated>1/20/2012 7:40:18 PM</TimeCreated><Source>SchedulerImpl.cs</Source><Line>719</Line><HasError>True</HasError></__System><Tags><JobSchedule
    /></Tags></ConsistencyCheck>
    the message resource is present but the message is not found in the string/message table
    The description for Event ID 945 from source MSDPM cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event: 
    Unable to connect to the DPM database because of a general database failure.  Make sure that SQL Server is running and that it is configured correctly.
    Problem Details:
    <FatalServiceError><__System><ID>19</ID><Seq>1236</Seq><TimeCreated>1/20/2012 7:40:29 PM</TimeCreated><Source>DpmThreadPool.cs</Source><Line>163</Line><HasError>True</HasError></__System><ExceptionType>SqlException</ExceptionType><ExceptionMessage>Cannot
    insert the value NULL into column 'owner_sid', table 'msdb.dbo.sysjobs'; column does not allow nulls. INSERT fails.
    The statement has been terminated.</ExceptionMessage><ExceptionDetails>System.Data.SqlClient.SqlException: Cannot insert the value NULL into column 'owner_sid', table 'msdb.dbo.sysjobs'; column does not allow nulls. INSERT fails.
    The statement has been terminated.
       at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection)
       at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj)
       at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj)
       at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString)
       at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async)
       at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, DbAsyncResult result)
       at System.Data.SqlClient.SqlCommand.InternalExecuteNonQuery(DbAsyncResult result, String methodName, Boolean sendToPipe)
       at System.Data.SqlClient.SqlCommand.ExecuteNonQuery()
       at Microsoft.Internal.EnterpriseStorage.Dls.DB.SqlRetryCommand.ExecuteNonQuery()
       at Microsoft.Internal.EnterpriseStorage.Dls.Scheduler.SqlAgentHelper.AddJob(String jobName, String jobOwner, String CategoryName)
       at Microsoft.Internal.EnterpriseStorage.Dls.Scheduler.SqlAgentHelper.RegisterSchedule(Schedule schedule)
       at Microsoft.Internal.EnterpriseStorage.Dls.Scheduler.RegisterScheduleHelper.PerformDBOperation()
       at Microsoft.Internal.EnterpriseStorage.Dls.Scheduler.RegisterScheduleHelper.Execute(SqlContext sqlContext)
       at Microsoft.Internal.EnterpriseStorage.Dls.Scheduler.SchedulerImpl.Register(SqlContext sqlContext, String scheduleXml)
       at Microsoft.Internal.EnterpriseStorage.Dls.Intent.ScheduleTranslator.CreateScheduleDefinition(String jobDefinitionId, RecurrenceType[] scheduleRecurrances)
       at Microsoft.Internal.EnterpriseStorage.Dls.Intent.ScheduleTranslator.ScheduleJobDefinition(JobTranslator jobTranslator)
       at Microsoft.Internal.EnterpriseStorage.Dls.Intent.ScheduleTranslator.ScheduleReplicationJob(JobTranslator jobTranslator, BackupTypeType backupType, Boolean scheduleOnlyForApplications)
       at Microsoft.Internal.EnterpriseStorage.Dls.Intent.ScheduleTranslator.ScheduleFullDeltaReplicationJobForApp()
       at Microsoft.Internal.EnterpriseStorage.Dls.Intent.ProtectedGroupTranslator.UpdateJobDefinitions()
       at Microsoft.Internal.EnterpriseStorage.Dls.Intent.ProtectedGroupTranslator.TranslateGroup(IMCatalogType IMCatalogXmlPassed, String intentCatalogXml)
       at Microsoft.Internal.EnterpriseStorage.Dls.Engine.CIntentServices.ConfigureProtectedGroup(UInt16* bstrIMCatalogXml)
       at Microsoft.Internal.EnterpriseStorage.Dls.Engine.CCoreServices.ConfigureProtectedGroup(CCoreServices* , UInt16* bstrIMCatalogXml, tagSAFEARRAY** exceptionResult)</ExceptionDetails></FatalServiceError>
    the message resource is present but the message is not found in the string/message table
    Rob

  • Error: SIZE and ID attributes must not be specified.

    This item is "File Browse..."
    <img src="http://img17.imageshack.us/img17/3133/item7au.jpg" alt="" />
    <p>
    Why this error ?
    Why is it necessary for HTMLDB to disallow "id" attribute for FORM item(s) ?
    </p>

    Thats understandable, HTML DB generates element "ids" based on the item name you specify. If you go and override it with your own "id", it would get confused as to what nomenclature is needed to refer to that form item, right? It cant generate [input id="P1_ITEM" id="my_file_element" ..., that doesnt make sense. If if skips its internal id generation and uses only your id, major parts of the internal engine wouldnt work because it probably uses the item name as a "primary key" in the metadata tables.
    Having said all that, why would you want to specify your own id for form elements?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Use VO to get DB value and set attribute

    Hi,
    I am working a page to create new order. I need some information populate. This is my code, which somehow not work
    public void createOrder() //(String[] args)
    OAViewObject vo = (OAViewObject)getxxMobileOrderVO1();
    if (!vo.isPreparedForExecution())
    vo.executeQuery();
    Row row = vo.createRow();
    vo.insertRow(row);
    row.setNewRowState(Row.STATUS_INITIALIZED);
    // Populate support information
    xxMobileSupportVOImpl sptVo = (xxMobileSupportVOImpl)getxxMobileSupportVO1();
    if (sptVo == null)
    MessageToken[] errTokens = {new MessageToken("OBJECT_NAME", "xxMobileSupportVO1")};
    throw new OAException("PER", "XXBOL_OAF_OBJECT_NOT_FOUND", errTokens);
    sptVo.initSupport();
    Row sptRow = sptVo.getCurrentRow();
    if (sptRow != null) {
    row.setAttribute("SupportPersonId", sptRow.getAttribute("PersonId"));
    row.setAttribute("SptName", sptRow.getAttribute("FullName"));
    row.setAttribute("SptEmail", sptRow.getAttribute("EmailAddress"));
    The VO xxMobileSupportVO is a simple select returns one records:
    SELECT ppx.person_id
    , ppx.employee_number
    , ppx.full_name
    , ppx.email_address
    --, lk.tag
    FROM fnd_lookup_values lk
    , per_people_x ppx
    WHERE lk.lookup_type = 'XXXX'
    AND lk.lookup_code = ppx.employee_number
    AND lk.enabled_flag = 'Y'
    AND lk.LANGUAGE = USERENV('LANG')
    AND lk.tag =
    ( SELECT MAX(NVL(tag, 0))
    FROM fnd_lookup_values
    WHERE lookup_type = 'XXXX'
    AND TRUNC(SYSDATE) BETWEEN lk.start_date_active
    AND NVL(lk.end_date_active, hr_general.END_OF_TIME)
    The VO is correctly attached to AM. I use Test feature to be sure it does get value.
    However, when the page is opened and createOrder method is called. The field does not get value populated.
    Does anyone can tell what is the issue?
    Thanks in advance.
    Rudoph

    Are you executing the VO query?
    I suppose you are executing it in sptVo.initSupport();
    If not first execute the VO using sptVo.executeQuery()
    After executing the query, do sptVO.first().
    This will give you the row of the VO.
    Then do your work based on that.
    Regards,
    Peddi.

  • Creating and Setting up web services for both inbound and outbound comms

    Hi
    I would like to know the process of setting up inbound and outbound web services using Siebel - is there a tech note /bookshelf article that can guide me through to setting up a 'new/custom' web service.
    I have read up on bookshelf that both business services and workflows can be setup/exposed as web services. Now i would like to find out how to do this.
    Any help appreciated.
    Regards,
    TS

    As you begin to experiment with web services you should take a look at SoapUI. It is a freeware program that makes it a breeze to test both inbound an outbound web service calls. The bonus is that it can also be used to trace what HTTP is going back and forth along with giving you the ability to chain calls together. That is particularly useful for example if you are learning how to do web service calls within the context of a session. http://www.soapui.com/

  • Getting and setting attributes

    Hi!!!
    I have to get attributes from the workflow process, i have a function, with some activity attributes, but i want to, instead of putting the internal names of the global attributes, put as an Item Attribute instead of Constant.
    When i try to read them as an item Atribute and after select the appropriate item, it dosen4t work, they are always empty, why????
    what i doing wrong???
    FUNCTION GET_STRINGS (Attr_Name in varchar2,
    Obrigatory in BOOLEAN := FALSE) return VARCHAR2
    is
    v_Value_String VARCHAR2(4000);
    NOT_NULL EXCEPTION;
    begin
    v_Value_String := wf_engine.GetActivityAttrText (itemtype=> g_ItemType,
                                            itemkey => g_ItemKey,
    actId => g_ActId,
    aname =>Attr_Name);
    IF Obrigatory AND v_Value_String IS NULL THEN
    RAISE NOT_NULL;
    END IF;
    RETURN v_Value_String;
    EXCEPTION
    WHEN NOT_NULL THEN
    WF_CORE.token('GET_STRINGS','ATTRIBUTE MUST BE FILLED - ' || Attr_Name);
    WHEN OTHERS THEN
    WF_CORE.token('GET_STRINGS','DON4T EXIST THE ATTRIBUTE ' || Attr_Name);
    end;

    If I understand you correctly, you want to point your activity attribute to an Item Attribute to get the value.
    To do this, you can look at the WF_STANDARD.ASSIGN pl/sql code for an example, basically, you do the following:
    aname := wf_engine.GetActivityAttrText(itemtype, itemkey, actid, 'ATTR');
    wf_engine.GetItemAttrInfo(itemtype, aname, atype, asubtype, aformat);
    if (atype = 'NUMBER') then
    wf_engine.SetItemAttrNumber
    elsif (atype = 'DATE') then
    etc etc
    Hi!!!
    I have to get attributes from the workflow process, i have a function, with some activity attributes, but i want to, instead of putting the internal names of the global attributes, put as an Item Attribute instead of Constant.
    When i try to read them as an item Atribute and after select the appropriate item, it dosen4t work, they are always empty, why????
    what i doing wrong???
    FUNCTION GET_STRINGS (Attr_Name in varchar2,
    Obrigatory in BOOLEAN := FALSE) return VARCHAR2
    is
    v_Value_String VARCHAR2(4000);
    NOT_NULL EXCEPTION;
    begin
    v_Value_String := wf_engine.GetActivityAttrText (itemtype=> g_ItemType,
                                            itemkey => g_ItemKey,
    actId => g_ActId,
    aname =>Attr_Name);
    IF Obrigatory AND v_Value_String IS NULL THEN
    RAISE NOT_NULL;
    END IF;
    RETURN v_Value_String;
    EXCEPTION
    WHEN NOT_NULL THEN
    WF_CORE.token('GET_STRINGS','ATTRIBUTE MUST BE FILLED - ' || Attr_Name);
    WHEN OTHERS THEN
    WF_CORE.token('GET_STRINGS','DON4T EXIST THE ATTRIBUTE ' || Attr_Name);
    end;

Maybe you are looking for

  • "Kernel Panic" with log file: what could be the cause...?

    Hi, Today I had my 3th "kernel panic" if I'm right. I have an IbookG4 1,42GHz. I've already post my problem, with log, on a dutch Apple forum but the people don't know what the log means. The problem can't be new hardware (more memory) because I have

  • Profit Centre in F-38 and F-55

    Hi Good day to you. In Statistical Posting in Vendor and Customer (T Codes F-38 and F-55), Profit Centre field is not available. We tried to achieve Posting to Profit Centre Field in F-38 by substituting the value entered in Assignment Field (ZUONR)

  • HT5012 my wifi not working way

    my wifi of my phone not working way

  • MSP 9.4.1 Modifies What EXE or DLL?

    Normally, modifications made to Acrobat by the application of a MSP such as AcrobatUpd941_all_incr.msp are easy to identify.  Finding a version change to an EXE or DLL is easy.  However, 9.4.1 doesn't seem to follow the easy method.  What does MSP 9.

  • Bevel *still* misbehaving

    Last time I had this problem, a friendly forumgoer suggested tweaking the perspective slider in the extrude-and-bevel dialog, and that fixed the problem. This time, that's not helping. I've drawn a path to represent a collection-arrow, then applied e