Xfa.resolvenode returns null on one field whereas returns a node on the event of the specific field

Hi Experts,
I have a requirement wherein I need to populate values in my Table row depending upon the value of another text field.
The problem is when I use this line of code var rsize = xfa.resolvenode("MyForm.SubForm1.Table1.Row1[*].UOM") in the change event of say Field1, it returns 0 on accessing rsize.length whereas the same line returns 5 which is the desired value on initialize event of Table1.Row1.UOM.
How to get this thing working? I need to use similar lines of code in 5 fields i.e. need to access and assign values to table rows dependimg upon change events in 5 different fields.
I am new to Adobe forms and stuck up with this since a long time. Let me know what is the ideal way to get this thing working. And where do I put my javascript code if the dependency to fill the row values is on some other field.
Thanks a lot in advance.

Hi Niall,
Thanks for your reply. And sorry for my typo.
I have used resolveNodes() in my code to get the length. But as I said the length is 0  when the code is written in change event of say Field1 and the same returns 5 which is the desired value when the code is writtenon any event of the UOM field.
What exactly I want to achieve is to set the rawValue of MyForm.SubForm1.Table1.Row1[*].UOM whenever we enter value in Field1 the hierarchy for which is MyForm.SubForm2.Field1.
Thanks,
Archana

Similar Messages

  • Xfa.resolveNode is not writing values to the last line

    Hi,
    I have an issue with the xfa.resolveNode function, i have added at comment //
    at below coding at the line where the issues is occuring, please advise what can be done in order to make the loop works and enter the loop for the last line.
    Any help/comment is highly appreciate!
    FormQuoteNotification.bdyMain.frmTableBlock.tblTable.rowTableSection.rowTableItem.colNetV alue::initialize - (JavaScript, client)
    var rowCount = tblTable._rowTableSection.count;
    var rowNo = new Array(rowCount);
    var i = 0;
    var j = 0;
    var k = 0;
    var comboType = new Array(rowCount);
    var comboPrice = new Array(rowCount);
    var productID = new Array(rowCount);
    var finalType = new Array();
    var finalPrice = new Array();
    var finalRow = new Array();
    var datasum = 0.000;
    for(i=0; i<rowCount; i++){
    rowNo[i] = xfa.resolveNode("tblTable.rowTableSection["+i+"]").rowRemarkRow.frmItem.txtLine.rawValue;
    productID[i] = xfa.resolveNode("tblTable.rowTableSection["+i+"]").rowRemarkRow.frmItem.txtProduct.rawVal ue;
    comboPrice[i] = xfa.resolveNode("tblTable.rowTableSection["+i +"]").rowRemarkRow.frmItem.frmNetValue.decNetValue.rawValue;
    comboType[i] = xfa.resolveNode("tblTable.rowTableSection["+i+"]").rowRemarkRow.frmItem.txtCombo.rawValue ;
              for(j=0; j<rowCount; j++){
                    if(j==(rowCount-1)){ // to check if this is the row before the last one
                        if(comboType[j]== comboType[j-1]){
                         finalType[k] = comboType[j];
                         datasum += parseFloat(comboPrice[j]);
                            finalPrice[k] = datasum;
                        else{
                         if(comboType[j] == null || comboType[j] == ""){
                          finalType[k] = "NotCombo";
                          datasum += parseFloat(comboPrice[j]);
                          finalPrice[k] = datasum; 
                          finalRow[k] = rowNo[j];
                          k=k+1;
                          datasum = 0.000;
                         else{finalType[k] = comboType[j];}
                    else{
                        if(comboType[j]== comboType[j+1]){
                            finalType[k] = comboType[j];
                            datasum += parseFloat(comboPrice[j]);
                            finalPrice[k] = datasum; 
                             if(finalRow[k] == "" || finalRow[k] == null){
                              finalRow[k] = rowNo[j]; 
                        else{
                         if(comboType[j] == null || comboType[j] == ""){
                             datasum += parseFloat(comboPrice[j]);
                          finalType[k] = "NotCombo";
                          finalRow[k] = rowNo[j];
                          k=k+1;
                          datasum = 0.000;
                         else{                      
                          finalPrice[k] += parseFloat(comboPrice[j]);
                              k=k+1;
                             datasum = 0.000;
    if(finalType[0] != null && finalType[0] != ""){
    for(var n=0; n<rowCount; n++){
    for(var m=0; m<rowCount; m++){
    //at this line, for the last row, even it is matching the if statement, the script is not entering for the last match of loop.
    //example, if rowCount = 2, when m=1, n=1, and the if statement is matching, , but it is simply not displaying the "XXX" for the line of n=2
    if(xfa.resolveNode("tblTable.rowTableSection["+n+"]").rowTableItem.colCombo.rawValue == finalType[m]
       && xfa.resolveNode("tblTable.rowTableSection["+n+"]").rowTableItem.colCombo.rawValue != ""
       && xfa.resolveNode("tblTable.rowTableSection["+n+"]").rowTableItem.colCombo.rawValue != null)
        xfa.resolveNode("tblTable.rowTableSection["+n+"]").rowTableItem.colProduct.rawValue = "XXX";
        //display comboprice
        if(xfa.resolveNode("tblTable.rowTableSection["+n+"]").rowTableItem.colLine.rawValue == finalRow[m] &&   xfa.resolveNode("tblTable.rowTableSection["+n+"]").rowTableItem.colCombo.rawValue == finalType[m]){
         var pricetodisplay = finalPrice[m].toFixed(3)+ " KWD";
         xfa.resolveNode("tblTable.rowTableSection["+n+"]").rowTableItem.colNetValue.rawValue =   pricetodisplay ; 
           if(xfa.resolveNode("tblTable.rowTableSection["+n  +"]").rowTableItem.colNetValue.rawValue == null || xfa.resolveNode("tblTable.rowTableSection["+n  +"]").rowTableItem.colNetValue.rawValue == " " || isNaN(xfa.resolveNode("tblTable.rowTableSection["+n  +"]").rowTableItem.colNetValue.rawValue)){
               this.rawValue = null;

    Wouldn't this be better posted in a developers forum? This forum is for Using an iPad, not writing programs for one.

  • Using xfa.resolveNode with tables

    I use xfa.resolveNode when working with fields in a subform.  I am trying to do the same with a subform in a row in a table, but am getting a null error.  Can I use xfa.resolveNode to refer to a field in a table e.g. xfa.resolveNode("subform.field")?
    Thanks for any assistance with this.

    Hi,
    start with these tutorials.
    http://www.assuredynamics.com/index.php/2011/05/som-expressions/
    http://blogs.adobe.com/formfeed/2011/06/resolvenode-vs-resolvenodes.html

  • Error: XPath query string returns multiple nodes

    Hi all,
    I am facing issue with the assign activity.
    Error message:
    com.oracle.bpel.client.BPELFault: faultName: {{http://schemas.xmlsoap.org/ws/2003/03/business-process/}selectionFailure} parts: {{ summary=&lt;summary>*XPath query string returns multiple nodes. The assign activity part and query are returning multiple nodes. The assign activity part and query named in the error message returned multiple nodes. It should return single node. According to BPEL4WS specification 1.1 section 14.3, the assign activity part and query named in the error message should not return multiple nodes. Verify the part and xpath query named in the error message at line number 2005 in the BPEL source*.
    BPEL code:
    <copy>
    <from variable="Invoice_Tax_loopCounter"/>
    <to variable="Var_Invoice_Tax_Contacts" part="payload" query="/ns30:Invoice_Tax_Contacts/ns30:Invoice/ns29:Get_InvoiceOutput[bpws:getVariableData'Invoice_Tax_loopCounter')]/ns29:ADDR_ATTRIBUTE2"/>
    </copy>
    We are using SOA 11.1.1.3 version.
    Any pointers on this?
    Thanks in advance

    Hi-
    This is because you are have multiple nodes either in source or target XML.
    My guess is some nodes of your XML might be repeating (means a single element/node has multiple values). Can you please check that or please post your XML here.
    Edited by: 145678 on Mar 7, 2011 6:28 PM

  • Help needed in returning multiple columns from one field

    Hi,
    I have been given a task to rewrite the query (see below), so that I get three columns from the one field, based on their contents.
    The script returns all the columns and concatenates them into one, but returns them as comma delimmited within the returned column, to generate a report.
    These tables are from Siebel.
    Our Oracle version is:
    select banner from sys.v_$version;
    --returns
    Oracle8i Enterprise Edition Release 8.1.7.4.0 - Production
    PL/SQL Release 8.1.7.4.0 - Production
    CORE     8.1.7.0.0     Production
    TNS for Solaris: Version 8.1.7.4.0 - Production
    NLSRTL Version 3.4.1.0.0 - Production
    Here is what I was given;
    set arraysize 200
    Spool d:\Daily_reports\Data\RegManage\Electricity\eCISPLUS_Product_Switch_Not_Started_Discount.csv
    -- this will concatenate all the returned columns into one
    SELECT DISTINCT '"'||
    rtrim(ltrim(S_ORG_EXT.OU_NUM)) || '","' ||
    rtrim(ltrim(S_ORG_EXT.NAME)) || '","' ||
    rtrim(ltrim(S_EVT_ACT.TODO_CD)) || '","' ||
    rtrim(ltrim(S_EVT_ACT.EVT_STAT_CD)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_SOURCE_TYPE)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_TXU_PRICELIST_NAME)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_CLASS_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_PEAKANYTIME_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_PA_CLASS_ELEC)) || '","' ||
    rtrim(ltrim(S_ORG_EXT.X_OTH_ACCOUNT_NUMBER)) || '","' ||
    rtrim(ltrim(S_ADDR_PER.X_NMI_NUM)) || '","' ||
    rtrim(ltrim(S_ADDR_PER.X_NMI_CHECKSUM)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.QUOTE_NUM)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_COOLING_OFF_DATE)) || '","' ||
    rtrim(ltrim(S_PROD_INT.NAME)) || '"'
    The field S_PROD_INT.NAME is the one that I need to split so that it is retured
    into three different columns.
    1st column needed -
    where S_PROD_INT.NAME Like 'Electricity TRUenergy Business Edge __ %'
    OR S_PROD_INT.NAME Like 'Electricity TRUenergy Business Now __ %'
    OR S_PROD_INT.NAME Like 'Electricity Go for More __ %'
    OR S_PROD_INT.NAME Like 'Electricity Mates Rates __ %'
    2nd column needed -
    where S_PROD_INT.NAME Like 'Gas TRUenergy Business Edge __ %'
    OR S_PROD_INT.NAME Like 'Gas TRUenergy Business Now __ %'
    OR S_PROD_INT.NAME Like 'Gas Go for More __ %'
    OR S_PROD_INT.NAME Like 'Gas Mates Rates __ %'
    3rd column needed from
    S_PROD_INT.NAME Like '* ___ Discount for Paying Your Bill by the Due Date')
    -- Tables
    FROM SIEBEL.S_ADDR_PER S_ADDR_PER,
    SIEBEL.S_DOC_QUOTE S_DOC_QUOTE,
    SIEBEL.S_EVT_ACT S_EVT_ACT,
    SIEBEL.S_ORG_EXT S_ORG_EXT,
    SIEBEL.S_PRI_LST S_PRI_LST,
    SIEBEL.S_PROD_INT S_PROD_INT,
    SIEBEL.S_QUOTE_ITEM S_QUOTE_ITEM
    WHERE S_EVT_ACT.TARGET_OU_ID = S_ORG_EXT.ROW_ID
    AND S_DOC_QUOTE.ROW_ID = S_QUOTE_ITEM.SD_ID
    AND S_ADDR_PER.ROW_ID = S_ORG_EXT.PR_ADDR_ID
    AND S_PROD_INT.ROW_ID = S_QUOTE_ITEM.PROD_ID
    AND S_ORG_EXT.ROW_ID = S_DOC_QUOTE.TARGET_OU_ID
    AND S_DOC_QUOTE.PRI_LST_ID = S_PRI_LST.ROW_ID
    AND S_EVT_ACT.TODO_CD = 'Product Switch-Electricity'
    AND S_EVT_ACT.EVT_STAT_CD In ('In Progress','Not Started','On Hold')
    AND S_DOC_QUOTE.STAT_CD In ('Completed','Verbal Acceptance','Written Acceptance')
    AND S_DOC_QUOTE.X_OFFER_TYPE = 'Product Switch'
    AND (S_PROD_INT.NAME Like 'Electricity TRUenergy Business Edge __ %' OR S_PROD_INT.NAME Like 'Electricity TRUenergy Business Now __ %'
    OR S_PROD_INT.NAME Like 'Electricity Go for More __ %' OR S_PROD_INT.NAME Like 'Electricity Mates Rates __ %'
    OR S_PROD_INT.NAME Like 'Electricity __ Discount for Paying Your Bill by the Due Date' or S_PROD_INT.NAME Like 'Electricity TRUenergy Business Edge ___ %'
    OR S_PROD_INT.NAME Like 'Electricity TRUenergy Business Now ___ %'
    OR S_PROD_INT.NAME Like 'Electricity Go for More ___ %'
    OR S_PROD_INT.NAME Like 'Electricity Mates Rates ___ %'
    OR S_PROD_INT.NAME Like 'Electricity ___ Discount for Paying Your Bill by the Due Date')
    UNION
    SELECT DISTINCT '"'||
    rtrim(ltrim(S_ORG_EXT.OU_NUM)) || '","' ||
    rtrim(ltrim(S_ORG_EXT.NAME)) || '","' ||
    rtrim(ltrim(S_EVT_ACT.TODO_CD)) || '","' ||
    rtrim(ltrim(S_EVT_ACT.EVT_STAT_CD)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_SOURCE_TYPE)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_TXU_PRICELIST_NAME)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_CLASS_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_PEAKANYTIME_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_PA_CLASS_ELEC)) || '","' ||
    rtrim(ltrim(S_ORG_EXT.X_OTH_ACCOUNT_NUMBER)) || '","' ||
    rtrim(ltrim(S_ADDR_PER.X_NMI_NUM)) || '","' ||
    rtrim(ltrim(S_ADDR_PER.X_NMI_CHECKSUM)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.QUOTE_NUM)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_COOLING_OFF_DATE)) || '"'
    FROM SIEBEL.S_ADDR_PER S_ADDR_PER,
    SIEBEL.S_DOC_QUOTE S_DOC_QUOTE,
    SIEBEL.S_EVT_ACT S_EVT_ACT,
    SIEBEL.S_ORG_EXT S_ORG_EXT,
    SIEBEL.S_PRI_LST S_PRI_LST
    WHERE S_EVT_ACT.TARGET_OU_ID = S_ORG_EXT.ROW_ID
    AND S_ADDR_PER.ROW_ID = S_ORG_EXT.PR_ADDR_ID
    AND S_ORG_EXT.ROW_ID = S_DOC_QUOTE.TARGET_OU_ID
    AND S_DOC_QUOTE.PRI_LST_ID = S_PRI_LST.ROW_ID
    AND S_EVT_ACT.TODO_CD = 'Product Switch-Electricity'
    AND S_EVT_ACT.EVT_STAT_CD In ('In Progress','Not Started','On Hold')
    AND S_DOC_QUOTE.STAT_CD In ('Completed','Verbal Acceptance','Written Acceptance')
    AND S_DOC_QUOTE.X_OFFER_TYPE = 'Product Switch'
    AND NOT EXISTS (SELECT /*+ unnest */ 'X'
    FROM SIEBEL.S_PROD_INT S_PROD_INT, SIEBEL.S_QUOTE_ITEM S_QUOTE_ITEM
    WHERE S_DOC_QUOTE.ROW_ID = S_QUOTE_ITEM.SD_ID
    AND S_PROD_INT.ROW_ID = S_QUOTE_ITEM.PROD_ID
    AND (S_PROD_INT.NAME Like 'Electricity TRUenergy Business Edge __ %'
    OR S_PROD_INT.NAME Like 'Electricity TRUenergy Business Now __ %'
    OR S_PROD_INT.NAME Like 'Electricity Go for More __ %'
    OR S_PROD_INT.NAME Like 'Electricity Mates Rates __ %'
    OR S_PROD_INT.NAME Like 'Electricity __ Discount for Paying Your Bill by the Due Date' or S_PROD_INT.NAME Like 'Electricity TRUenergy Business Edge ___ %'
    OR S_PROD_INT.NAME Like 'Electricity TRUenergy Business Now ___ %'
    OR S_PROD_INT.NAME Like 'Electricity Go for More ___ %'
    OR S_PROD_INT.NAME Like 'Electricity Mates Rates ___ %'
    OR S_PROD_INT.NAME Like 'Electricity ___ Discount for Paying Your Bill by the Due Date'));
    spool off
    This is what one row looks like;
    "1-UWLHY","Alpha Vic Kelly Kay","Product Switch-Electricity","Not Started","AMBASS_50REBATE","Go Green PKANY-Powercor","QEGS1","GG","QEGS1","GG","","6407421678","8","1-UWLI6","12-JUN-07","Electricity Mates Rates 7% Discount"
    we want
    "1-UWLHY","Alpha Vic Kelly Kay","Product Switch-Electricity","Not Started","AMBASS_50REBATE","Go Green PKANY-Powercor","QEGS1","GG","QEGS1","GG","","6407421678","8","1-UWLI6","12-JUN-07",'Electricity Mates Rates 7% Discount","Gas TRUenergy Business Edge 10% Discount","Electricity 3% Discount for Paying Your Bill by the Due Date"
    I have tried to:
    - create a cursor
    - each column as - ie
    S_PROD_INT.NAME as "EVD",
    S_PROD_INT.NAME as "GVD",
    S_PROD_INT.NAME as "PbDDD"
    but when I try to use them in where "EVD" Like 'etc...'
    error that table does not exist
    I have tried also as
    where 'EVD' Like 'etc...' -- error
    where EVD Like 'etc...' -- error
    - create them as %TYPE variable
    - more
    but keep getting errors
    Any ideas and help will be most appreciated as I have tried and researched all I can think and get my hands on with my limited skills.
    Thanks.
    Regards, Steve

    Unfortunately my skills are not high enough as I obviously don't know where to put the code exaclty.
    I am first just running it on the top part of the script but get the error;
    ORA-00900: invalid SQL statement
    What I am running is; -- Commented
    WITH s_prod_int AS
    SELECT 1 row_id, 'Electricity Mates Rates 7% Discount' name FROM s_prod_int --these were 'FROM dual' originally, I changed to s_prod_int (Received same error regardless whether from dual or s_prod_int)
    UNION ALL
    SELECT 1, 'Gas TRUenergy Business Edge 10% Discount' FROM s_prod_int
    UNION ALL
    SELECT 1, 'Electricity 3% Discount for Paying Your Bill by the Due Date' FROM s_prod_int
    SELECT DISTINCT '"'||
    rtrim(ltrim(S_ORG_EXT.OU_NUM)) || '","' ||
    rtrim(ltrim(S_ORG_EXT.NAME)) || '","' ||
    rtrim(ltrim(S_EVT_ACT.TODO_CD)) || '","' ||
    rtrim(ltrim(S_EVT_ACT.EVT_STAT_CD)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_SOURCE_TYPE)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_TXU_PRICELIST_NAME)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_CLASS_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_PEAKANYTIME_ELEC)) || '","' ||
    rtrim(ltrim(S_PRI_LST.X_TXU_CISRATE_PA_CLASS_ELEC)) || '","' ||
    rtrim(ltrim(S_ORG_EXT.X_OTH_ACCOUNT_NUMBER)) || '","' ||
    rtrim(ltrim(S_ADDR_PER.X_NMI_NUM)) || '","' ||
    rtrim(ltrim(S_ADDR_PER.X_NMI_CHECKSUM)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.QUOTE_NUM)) || '","' ||
    rtrim(ltrim(S_DOC_QUOTE.X_COOLING_OFF_DATE)) || '","' ||
    rtrim(ltrim(a.name)) ||'","'|| --I assume I am still able to right and left trim
    rtrim(ltrim(b.name)) ||'","'||
    rtrim(ltrim(c.name))||'"' name -- not sure what this name is here for (have ran with and without it here
    FROM SIEBEL.S_ADDR_PER S_ADDR_PER,
    SIEBEL.S_DOC_QUOTE S_DOC_QUOTE,
    SIEBEL.S_EVT_ACT S_EVT_ACT,
    SIEBEL.S_ORG_EXT S_ORG_EXT,
    SIEBEL.S_PRI_LST S_PRI_LST,
    s_prod_int a, -- I assume these needed to go in here
    s_prod_int b,
    s_prod_int c
    SIEBEL.S_QUOTE_ITEM S_QUOTE_ITEM
    WHERE S_EVT_ACT.TARGET_OU_ID = S_ORG_EXT.ROW_ID
    AND S_DOC_QUOTE.ROW_ID = S_QUOTE_ITEM.SD_ID
    AND S_ADDR_PER.ROW_ID = S_ORG_EXT.PR_ADDR_ID
    AND S_PROD_INT.ROW_ID = S_QUOTE_ITEM.PROD_ID
    AND S_ORG_EXT.ROW_ID = S_DOC_QUOTE.TARGET_OU_ID
    AND S_DOC_QUOTE.PRI_LST_ID = S_PRI_LST.ROW_ID
    AND S_EVT_ACT.TODO_CD = 'Product Switch-Electricity'
    AND S_EVT_ACT.EVT_STAT_CD In ('In Progress','Not Started','On Hold')
    AND S_DOC_QUOTE.STAT_CD In ('Completed','Verbal Acceptance','Written Acceptance')
    AND S_DOC_QUOTE.X_OFFER_TYPE = 'Product Switch'
    AND a.NAME LIKE 'Electricity TRUenergy Business Edge%' --Placed all the where part in the original where clause
    OR a.NAME LIKE 'Electricity TRUenergy Business Now%'
    OR a.NAME LIKE 'Electricity Go for More%'
    OR a.NAME LIKE 'Electricity Mates Rates%'
    AND a.row_id = b.row_id
    AND (
    b.NAME LIKE 'Gas TRUenergy Business Edge%'
    OR b.NAME LIKE 'Gas TRUenergy Business Now%'
    OR b.NAME LIKE 'Gas Go for More%'
    OR b.NAME LIKE 'Gas Mates Rates%'
    AND b.row_id = c.row_id
    AND (
    c.NAME LIKE '%Discount for Paying Your Bill by the Due Date'
    NAME -- Not sure what this NAME is for - tried with and without - same error

  • Graphics returning null in one place, but not another.

    If you want to compile and run my program.... you can get all the files here:
    http://s94182144.onlinehome.us/randomstuff/files.zip
    (The main classes you'll need to look at are DrawingCanvas, Trig and GraphEngine)
    Here's a visual just in case:
    http://s94182144.onlinehome.us/randomstuff/graph.jpg
    When I click the "Graph It" button, I'm sending all those variables in the window to another class. Except the method I need to call is passed Graphics g... and thus, I needed to create a graphics variable. But it's returning null.
    Here is my code in GraphEngine, which runs when a button is clicked. You'll notice for Graph It... I created a Graphics variable... this returns null. Except you'll also notice I do the same thing for "Clear"... but this works.
    NOTE: I was getting mad so I named some methods not so nicely :p .... you may notice they are different in my files.
         public void actionPerformed(ActionEvent e)
              userDisplay=e.getActionCommand();
              if(userDisplay.equals("Draw"))
                   String progChoice=grapher.graphType.getSelectedItem();
                   System.out.println(progChoice);
                   if(progChoice.equals("Lines"))
                        grapher.allButtons[0].enable();
                        draw();
                   else if(progChoice.equals("Scatter Plot"))
                        lineOfBestFit();
              else if(userDisplay.equals("Graph It"))
                   Trig.graphThisStuff();
                   Graphics g = canvas.getGraphics();
                   canvas.trig(g);
               else if(userDisplay.equals("Clear"))
                    Graphics g = canvas.getGraphics();
                   System.out.println(g);
                    canvas.clear(g);
            else if(userDisplay.equals("Reset"))
                Trig.restartThis();   
              else if(userDisplay.equals("Credits"))
                showInstructionsFrame();
            else if(userDisplay.equals("Help"))
                showHelpFrame();   
            else if(userDisplay.equals("Create Sinusodial Graph"))
                showTrigFrame();   

    1. Do you expect forum members to download and unzip your code? Good luck...
    2. Inside almost every "big" problem is a small one trying to get out. Write a minimal program
    demonstrating your problem (say <50 lines) and post that. The shorter code and the easier it
    is to copy, paste and run, the more forum members will actually give it a go.
    That being said, you problem is that you are using Component's getGraphics at all. Don't use it.
    It doesn't work very well -- they rendering you do is temporary, if you iconify and restore your
    window your changes will disappear (sometimes even moving another window past yours will do this!).
    What should you do instead? Put all your rendering code in paintComponent (or subroutines
    it calls). Changes in state of your app should trigger a call to repaint (or you will call it directly).
    Repainting will eventually cause your paintComponent to be called.

  • Mapping complete input XML structure into one field on target

    Hi,
    I have a scenario where I need to map the complete input XML structure as it is, into one field on target side. so can we achieve this in Graphical Mapping? If yes, please share your valuable info.
    Regards,
    Shiva.

    Hello,
    this is the java map code.just compile it and made a .zip file import it and use it Interface Mapping.
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.AbstractTrace;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    import java.util.Map;
    import java.io.*;
    public class PayloadToXMLField1 implements StreamTransformation {
        String strXML = new String();
       //Declare the XML tag for your XML message
       String StartXMLTag = "<DocumentBody>";
       String EndXMLTag = "</DocumentBody>";
       //String StartXMLTag1 = "<Code>";
       //String EndXMLTag1 = "</Code>";
        AbstractTrace trace;
        private Map param = null;
        public void setParameter(Map param) {
            this.param = param;
        public void execute(InputStream in, OutputStream out) {
            trace =
                (AbstractTrace) param.get(
                    StreamTransformationConstants.MAPPING_TRACE);
            trace.addInfo("Process Started");
            try {
                StringBuffer strbuffer = new StringBuffer();
                byte[] b = new byte[4096];
                for (int n;(n = in.read(b)) != -1;) {
                    strbuffer.append(new String(b, 0, n));
                strXML = strbuffer.toString();
            } catch (Exception e) {
                System.out.println("Exception Occurred");
            String outputPayload =
                StartXMLTag
             + "<![CDATA["
             + strXML
             + "]]>"
             + EndXMLTag;
            try {
                out.write(outputPayload.getBytes());
             trace.addInfo("Process Completed");;
            } catch (Exception e) {
                trace.addInfo("Process Terminated: Error in writing out payload");;

  • How to fill more values in one field (JSP / HTMLX)

    When I want to fill one value in a field on a JSP page, I enter:
    value="<%=someClass.getSomeValue() %>"
    How should I enter more values (e.g. street, city, postal code, country) in one field?
    I tried to put those fields together, so I do one getAddress() call, but the output is (initial screen - supposed to be empty) null null null null
    When I enter a customer, the field works ok (no null values).
    TIA,
    Mylene

    JSP:
    <hbj:inputField     
    id="CustomerAddressInputField"     
    type="STRING"     
    maxlength="10"     
    value="<%=quotationHeader.getCustomer().getAddress().getAddress() %>"
    design="STANDARD"
    ... %>"
    getAddress():
    @return String (complete address / positioning
    pCode unsure!)
    public final String getAddress()
    return (street + " " + pCode + " " + city + " " + cCode);
    This is what returns null null null null
    What I want (if possible) is to change the getAddress() in the JSP in subsequent getStreet() - add space - getPCode() - add space - getCity() - add space - getCCode()
    That will not result in null values - I hope.
    But just putting those calls in the string between the
    value ="<%= and the %>" tags doesn't seem to work!
    TIA,
    Mylene

  • Problem with one time where clause

    Hi All,
    I am working with Oracle Forms 10g.
    I have developed A new custom with Find window in that form. When we open the form First the find window will come first, and i have 10 fields in that form. For example PO number, supplier name,supplier site etc. When the user give po number and click find button in the find window it will move to my main form and query that po. If the user simply click find button all the po will listed. If the user give the supplier name alone and click find it will open the main form and query that supplier listed po alone. All working fine.
    Now i need to refresh the my page when it moves from find window to my main window. So i use Execute_query built in.But when i use Execute_query when i give single po alone and click find it querying all the po in my custom table. So i used onetime_where clause.
    But i dont know How to give more than one field in the onetime_where clause.
    This is my syntax and its not working in my scenario
    set_block_property('QUERY_FIND_BLK',ONETIME_WHERE,'C_PO_NUMBER='||:QUERY_FIND_BLK.C_PO_NUMBER);
    go_block('BANK_GUARANTEE_BLK');
    execute_query;
    So i tried by different
    set_block_property('QUERY_FIND_BLK',ONETIME_WHERE,
    'C_PO_NUMBER || C_PROJECT_ID || C_SUPPLIER_NAME || C_SUPPLIER_SITE_NAME || C_GUARANTEE_NUMBER
    || C_APPROVAL_STATUS || C_BG_TYPE AND C_BANK_NAME || C_BANK_BRANCH_NAME || C_GUAR_ISSUE_DATE || C_GUAR_ISSUE_DATE='
    || nvl(:QUERY_FIND_BLK.C_PO_NUMBER , :QUERY_FIND_BLK.C_PO_NUMBER )
    || nvl(:QUERY_FIND_BLK.C_PROJECT_NAME,:QUERY_FIND_BLK.C_PROJECT_NAME)
    || nvl(:QUERY_FIND_BLK.C_SUPPLIER_SITE,:QUERY_FIND_BLK.C_SUPPLIER_SITE)
    || nvl(:QUERY_FIND_BLK.C_SUPPLIER_SITE,:QUERY_FIND_BLK.C_SUPPLIER_SITE)
    || nvl(:QUERY_FIND_BLK.C_GUARANTEE_NO,:QUERY_FIND_BLK.C_GUARANTEE_NO)
    || nvl(:QUERY_FIND_BLK.C_APPROVAL_STATUS,:QUERY_FIND_BLK.C_APPROVAL_STATUS)
    || nvl(:QUERY_FIND_BLK.C_GUARANTEE_TYPE,:QUERY_FIND_BLK.C_GUARANTEE_TYPE)
    || nvl(:QUERY_FIND_BLK.C_BANK_NAME,:QUERY_FIND_BLK.C_BANK_NAME)
    || nvl(:QUERY_FIND_BLK.C_BRANCH_NAME,:QUERY_FIND_BLK.C_BRANCH_NAME)
    || nvl(:QUERY_FIND_BLK.C_FROM_DATE,:QUERY_FIND_BLK.C_FROM_DATE)
    || nvl(:QUERY_FIND_BLK.C_TO_DATE,:QUERY_FIND_BLK.C_TO_DATE));
    go_block('BANK_GUARANTEE_BLK');
    execute_query;
    But now again its querying all the records when i give a single po number in the query window.
    Can any one tell that how to use this onetime_where clause with multiple parameter
    Regards
    Srikkanth

    Hi Srikkanth,
    Try out below logic.
    PROCEDURE FIND_DETAILS IS
    V_WHERE VARCHAR2(2000);
    BEGIN
    V_WHERE := ' 1=1 ';
    IF :FIND_BLK.JOB_NUMBER IS NOT NULL THEN
    V_WHERE := V_WHERE || ' AND UPPER(JOB_NAME) LIKE '''||UPPER(:FIND_BLK.JOB_NUMBER) ||'''';
    END IF;
    IF :FIND_BLK.JOB_STATUS IS NOT NULL THEN
    V_WHERE := V_WHERE || ' AND STATUS_TYPE IN (SELECT lookup_code FROM mfg_lookups
    WHERE lookup_type = ''WIP_JOB_STATUS''
    AND UPPER(meaning) LIKE '''||UPPER(:FIND_BLK.JOB_STATUS)||''')';
    END IF;
    IF :FIND_BLK.WIP_CLASS IS NOT NULL THEN
    V_WHERE := V_WHERE || ' AND UPPER(WIP_CLASS_CODE) LIKE '''||UPPER(:FIND_BLK.WIP_CLASS)||'''';
    END IF;
    IF :FIND_BLK.ORG_CODE IS NOT NULL THEN
    V_WHERE := V_WHERE || ' AND ORG_ID = ' || :FIND_BLK.ORGANIZATION_ID;
    END IF;
    SET_BLOCK_PROPERTY('BLOCK_NAME',DEFAULT_WHERE,V_WHERE);
    GO_BLOCK('BLOCK_NAME');
    EXECUTE_QUERY;
    EXCEPTION
    WHEN OTHERS THEN
    FND_MESSAGE.SET_STRING('Unable to Match Search Criteria');
    FND_MESSAGE.SHOW;
    END;
    By using above where clause you can also do wild search e.g. C_PO_NUMBER like '%323' etc.
    Regards,
    Nisarg

  • Exact fetch returns more than requested number of rows oracle error ; unable to find where exactly throwing error in the below code.

    hi i am receiving "exact fetch returns more than requested number of rows oracle error". but i am not able to locate the error in the below code. Any help would be appreciated!!!
    CREATE OR REPLACE PROCEDURE load_scene_collection_item (
    --pdname                                  VARCHAR2,
    -- LOCATION TO ADD/CHANGE below!!!
    pITEM_TYPE_ID                      INTEGER,
    pSCENE_COLLECTION_ID        INTEGER,
    pCOLLECTION_ITEM_NAME     VARCHAR2,
    pCOLLECTION_ITEM_DESC      VARCHAR2,
    pDEFAULT_COORD_X      NUMBER,
    pDEFAULT_COORD_Y      NUMBER,
    pDEFAULT_COORD_Z      NUMBER,
    pDEFAULT_WIDTH            NUMBER,
    pDEFAULT_HEIGHT            NUMBER,
    pDEFAULT_ROTATION      INTEGER,
    pDEFAULT_ALPHA            INTEGER,
    pfname                                 VARCHAR2)    IS
    src_file BFILE;
    dst_file BLOB;
    lgh_file BINARY_INTEGER;
    BEGIN
    src_file := bfilename('BUSINESSBLOBSIMAGES', pfname);
    -- insert a NULL record to lock
    Insert into SCENE_COLLECTION_ITEM
       ( ITEM_TYPE_ID,
       SCENE_COLLECTION_ID,
       COLLECTION_ITEM_NAME,
       COLLECTION_ITEM_DESC,
        COLLECTION_ITEM_IMAGE,
       DEFAULT_COORD_X,
       DEFAULT_COORD_Y,
       DEFAULT_COORD_Z,
       DEFAULT_WIDTH,
       DEFAULT_HEIGHT,
       DEFAULT_ROTATION,
       DEFAULT_ALPHA,
        CREATE_USER,
        CREATE_DATE)
    Values    ( pITEM_TYPE_ID, pSCENE_COLLECTION_ID, pCOLLECTION_ITEM_NAME, pCOLLECTION_ITEM_DESC, EMPTY_BLOB(),   
       pDEFAULT_COORD_X,
       pDEFAULT_COORD_Y,
       pDEFAULT_COORD_Z,
       pDEFAULT_WIDTH,
       pDEFAULT_HEIGHT,
       pDEFAULT_ROTATION,
       pDEFAULT_ALPHA,  
    sys_context('USERENV', 'OS_USER'), 
    sys_extract_utc(systimestamp))
    RETURNING COLLECTION_ITEM_IMAGE INTO dst_file;
    -- LOCATIONs(2) TO ADD/CHANGE above!!!
    -- lock record
    SELECT COLLECTION_ITEM_IMAGE
    INTO dst_file
    FROM SCENE_COLLECTION_ITEM
    WHERE ITEM_TYPE_ID     = pITEM_TYPE_ID
    AND SCENE_COLLECTION_ID = pSCENE_COLLECTION_ID
    AND COLLECTION_ITEM_NAME= pCOLLECTION_ITEM_NAME
    AND COLLECTION_ITEM_DESC= pCOLLECTION_ITEM_DESC
    AND    pDEFAULT_COORD_X = DEFAULT_COORD_X
    AND   pDEFAULT_COORD_Y  = DEFAULT_COORD_Y
    AND   pDEFAULT_COORD_Z  = DEFAULT_COORD_Z
    AND   pDEFAULT_WIDTH    = DEFAULT_WIDTH
    AND   pDEFAULT_HEIGHT   = DEFAULT_HEIGHT
    AND   pDEFAULT_ROTATION = DEFAULT_ROTATION
    AND   pDEFAULT_ALPHA    = DEFAULT_ALPHA
    FOR UPDATE;
    -- LOCATION TO ADD/CHANGE above!!!
    -- open the file
    dbms_lob.fileopen(src_file, dbms_lob.file_readonly);
    -- determine length
    lgh_file := dbms_lob.getlength(src_file);
    -- read the file
    dbms_lob.loadfromfile(dst_file, src_file, lgh_file);
    -- update the blob field
    UPDATE SCENE_COLLECTION_ITEM
    SET COLLECTION_ITEM_IMAGE = dst_file
    WHERE ITEM_TYPE_ID     = pITEM_TYPE_ID
    AND SCENE_COLLECTION_ID = pSCENE_COLLECTION_ID
    AND COLLECTION_ITEM_NAME= pCOLLECTION_ITEM_NAME
    AND COLLECTION_ITEM_DESC= pCOLLECTION_ITEM_DESC
    AND    pDEFAULT_COORD_X = DEFAULT_COORD_X
    AND   pDEFAULT_COORD_Y  = DEFAULT_COORD_Y
    AND   pDEFAULT_COORD_Z  = DEFAULT_COORD_Z
    AND   pDEFAULT_WIDTH    = DEFAULT_WIDTH
    AND   pDEFAULT_HEIGHT   = DEFAULT_HEIGHT
    AND   pDEFAULT_ROTATION = DEFAULT_ROTATION
    AND   pDEFAULT_ALPHA    = DEFAULT_ALPHA
    -- LOCATION TO ADD/CHANGE above!!!
    -- close file
    dbms_lob.fileclose(src_file);
    END load_scene_collection_item;
    Thanks in advance!!!!

    Hi PaulHorth,
    Thanks for the quick reply.
    Actually, i am getting  error while updating the records.
    below is the error message:
    Error starting at line 1 in command:
    exec load_scene_collection_item(3,15,'2 Lane 4way Stop','4 Way Stop Intersection with 2 lanes in each direction',0,0,0,400,517,0,1,'2 Lane 4way Stop.PNG');
    Error report:
    ORA-01422: exact fetch returns more than requested number of rows
    ORA-06512: at "DP_OWNER.LOAD_SCENE_COLLECTION_ITEM", line 55
    ORA-06512: at line 1
    01422. 00000 - "exact fetch returns more than requested number of rows"
    *Cause:    The number specified in exact fetch is less than the rows returned.
    *Action:   Rewrite the query or change number of rows requested

  • How to do this?  More words in one field - split the words

    Hello Hello,
    I have a simple question about a simple database arrangement.
    But the family name and first name are in the same field(column).
    I would like to have a database with the first name - family name(s) in different fields.
    So when for example the database has Willem De Wortel in one field
    I would like to get a database with 3 more fields First name - Family 1 - Family 2
    So the first word is the first name : Willem
    and the second field is second name : De and the third field is third name : Wortel. For Willem Van De Wortel : I get 4 columns
    So the script should see at 1 column in the database.
    And make more columns for every word in that column.
    So I think most of times I get a database with 4 extra columns
    First name - Second name - third name - fourth name
    I prefer to make extra columns starting next to the selected column
    so I get a new database tab delimited mac os roman with (most of the times) 4 extra columns where the name is separated in more columns. And the new columns are next to the original column.
    I hope some one understand me.

    Hello Colin,
    Here it goes. Try this one.
    May this work well.
    Hiroto
    P.S. Sorry I misspelled your name in previous posts...
    --SCRIPT 2
    E.g.
    infile.txt (; denotes tab)
    name;field2;field3;field4
    d11;d12;d13;d14
    d21;d22;d23;d24
    d31;d32;d33;d34
    d41;d42;d43;d44
    * Here, the 1st field is for name
    outfile.txt (; denotes tab)
    name;name 1;name 2;...;name 9;name 10;field2;field3;field4
    d11;d11[1];d11[2];...;d11[9];d11[10];d12;d13;d14
    d21;d21[1];d21[2];...;d21[9];d21[10];d22;d23;d24
    d31;d31[1];d31[2];...;d31[9];d31[10];d32;d33;d34
    d41;d41[1];d41[2];...;d41[9];d41[10];d42;d43;d44
    * X denotes X's i'th substring delimited by space
    (If X is in double quotes, each X is also enclosed in double quotes)
    e.g.,
    Given X = "Willem Van De Wortel",
    X[1] = "Wililem"
    X[2] = "Van"
    X[3] = "De"
    X[4] = "Wortel"
    X[5]..X[10] = (empty)
    on run
    open (choose file with prompt "Choose input file") as list
    --open (choose file with prompt "Choose input file(s)" with multiple selections allowed) as list -- AS1.9.2 or later
    end run
    on open aa
    repeat with a in aa
    set infile to a as string
    set {p, m, x} to {|parent|, |name stem|, |name extension|} of getPathComponents(infile)
    set outfile to p & m & "-converted" & x
    main(infile, outfile)
    end repeat
    end open
    on main(infile, outfile)
    string infile : HFS path of input file
    string outfile : HFS path of output file
    script o
    property targetfield : 1 -- # target field index
    property subfields : {¬
    "name 1", "name 2", "name 3", "name 4", "name 5", ¬
    "name 6", "name 7", "name 8", "name 9", "name 10"} -- # additional sub field's names
    property sublen : count subfields
    property text_class : string -- # input & output text class [1]
    --property text_class : «class utf8» -- UTF-8
    [1] Input and output text class (: text encoding)
    string : System's primary encoding; e.g. Mac-Roman
    «class utf8» : UTF-8
    Unicode text : UTF-16BE
    property ORS : return -- # output record separator
    --property ORS : linefeed
    property pp : {}
    property qq : {}
    property rr : {}
    property mm : {}
    -- (0) read input file
    set t to read file infile as text_class
    set pp to t's paragraphs
    -- (1) build new header row
    set h1 to my pp's item 1 -- original header row (from line 1 of infile)
    set hh1 to text2list(h1, tab)
    set hh1's item targetfield to {hh1's item targetfield} & subfields -- add new sub fields
    set h to list2text(hh1, tab) -- new header row
    set qq to {h}
    -- (2) process each data row (line 2 .. line -1)
    repeat with i from 2 to count my pp --pp's item i is data row (i - 1)
    set p to my pp's item i
    if p = "" then -- skip any empty row
    set end of qq to p
    else
    -- get row data, name and name components
    set rr to text2list(p, tab) -- current row data
    set n to my rr's item targetfield -- full name
    set mm to text2list(n, space) -- name components delimited by space
    -- special treatment in case name is enclosed in double quotes
    if n starts with """ then -- original name is in double quotes
    set mm to text2list(list2text(my mm, """ & tab & """), tab) -- quote every component
    end if
    -- adjust name components' length to match the given field length
    set delta to sublen - (count my mm)
    repeat delta times
    set end of my mm to "" -- pad "" to end
    end repeat
    if delta < 0 then set mm to my mm's items 1 thru sublen -- truncate any extra, just in case
    -- build new row data
    set my rr's item targetfield to {n} & my mm
    set end of my qq to list2text(my rr, tab)
    end if
    end repeat
    -- (3) build output text and write it to output file
    set t1 to list2text(qq, ORS)
    writeData(t1, outfile, {_append:false, class:textclass})
    return t1
    end script
    tell o to run
    end main
    on list2text(aa, delim)
    list aa : source list
    text delim : text item delimiter in list-text coercion
    local t, astid, astid0
    set astid to a reference to AppleScript's text item delimiters
    try
    set astid0 to astid's contents
    set astid's contents to {delim}
    set t to "" & aa
    set astid's contents to astid0
    on error errs number errn
    set astid's contents to astid0
    error "list2text(): " & errs number errn
    end try
    return t
    end list2text
    on text2list(t, delim)
    text t : source text
    text delim : text item delimiter in text-list conversion
    local tt, astid, astid0
    set astid to a reference to AppleScript's text item delimiters
    try
    set astid0 to astid's contents
    set astid's contents to {delim}
    set tt to t's text items
    set astid's contents to astid0
    on error errs number errn
    set astid's contents to astid0
    error "text2list(): " & errs number errn
    end try
    return tt
    end text2list
    on writeData(x, fp, {append:append, class:class})
    data x: anything to be written to output file
    string fp: output file path
    boolean _append: true to append data, false to replace data
    type class _class: type class as which the data is written
    local fref
    try
    set fref to open for access (file fp) with write permission
    if not _append then set eof fref to 0
    write x as _class to fref starting at eof
    close access fref
    on error errs number errn
    try
    close access file fp
    on error --
    end try
    error "writeData(): " & errs number errn
    end try
    end writeData
    on getPathComponents(a)
    alias or HFS path string : a
    return record : {|parent|:p, |name|:n, |name stem|:m, |name extension|:x}, where -
    p = parent path (trailing colon inclusive)
    n = node name (trailing colon not inclusive)
    m = node name without name extension (trailing period not inclusive)
    x = name extension (leading period inclusive; i.e. n = m & x)
    local astid, astid0, fp, p, n, m, x
    set astid to a reference to AppleScript's text item delimiters
    set astid0 to astid's contents
    try
    -- (0) preparation (strip trailing ":")
    set fp to a as Unicode text
    if fp ends with ":" and fp is not ":" then set fp to fp's text 1 thru -2
    -- (1) get node's parent path and node name
    set astid's contents to {":"}
    tell fp's text items
    if (count) ≤ 1 then
    set {p, n} to {"", fp}
    else
    set {p, n} to {(items 1 thru -2 as Unicode text) & ":", item -1}
    end if
    end tell
    -- (2) get node name stem and extension
    set astid's contents to {"."}
    tell n's text items
    if (count) ≤ 1 then
    set {m, x} to {n, ""}
    else
    set {m, x} to {items 1 thru -2 as Unicode text, "." & item -1 as Unicode text}
    end if
    end tell
    set astid's contents to astid0
    on error errs number errn
    set astid's contents to astid0
    error "getPathComponents(): " & errs number errn
    end try
    return {|parent|:p, |name|:n, |name stem|:m, |name extension|:x}
    end getPathComponents
    --END OF SCRIPT 2
    Message was edited by: Hiroto (fixed the code a bit)

  • Dynamically populating more than one field using xml data binding

    Hi All,<br /><br />I have the following code that works fine to dynaically populate a<br />second drop-down list2 from a choice in drop-down list1 using xml data<br />biding.<br /><br />var tempString = "xfa.record." + this.boundItem(xfa.event.newText);<br />var oItems = xfa.resolveNode(tempString);<br />var nItemsLength = oItems.nodes.length;<br /><br />myinfo.page1.state.clearItems();<br />myinfo.page1.state.rawValue = null;<br /><br />for (var nItemCount = 0; nItemCount < nItemsLength; nItemCount++)<br />{<br />myinfo.page1.state.addItem(oItems.nodes.item(nItemCount).value);<br />}<br /><br />Here is my xml file<br /><br /><?xml version="1.0" encoding="UTF-8"?><br /><myinfo><br /><country/><br /><countries><br /><item uiname="United States" token="US"/><br /><item uiname="South Africa" token="SA"/><br /><item uiname="Australia" token="AU"/><br /></countries><br /><state/><br /><AU><br /><item>Australian Capital Territory</item><br /><item>New South Wales</item><br /><item>Northern Territory</item><br /><item>Queensland</item><br /><item>South Australia</item><br /><item>Tasmania</item><br /><item>Victoria</item><br /><item>Western Australia</item><br /></AU><br /><US><br /><item>California</item><br /><item>New York</item><br /><item>Texas</item><br /><item>Michigan</item><br /><item>North Carolina</item><br /><item>South Carolina</item><br /></US><br /><SA><br /><item>Eastern Cape</item><br /><item>Free State</item><br /><item>Gauteng</item><br /><item>KwaZulu-Natal</item><br /><item>Limpopo</item><br /><item>Mpumalanga</item><br /><item>Northern Cape</item><br /><item>North-West</item><br /><item>Western Cape</item><br /></SA><br /></myinfo><br /><br />I have two questions:<br /><br />1) I want to be able to structure my xml in a way that I can populate<br />a third drop-down list3 from a choice in list2. I need to know how to<br />to include the different capital cities of the states in my xml data<br />so that they can get populated in list3 from a selection in list2;<br /><br />2) And be able to script the third list3 to get dynamically populated<br />from a choice in list2.<br /><br />Thanks in advance for your help.

    I would like to ask someone for help.
    I have an XML file a result of the XSLT transformation. A schema was created based on this XML and this schema is bound to a form as a data source.  When I preview my form using a Preview tab with transformed XML as a Data File in LiveCycle Designer 8.1, I can see only the first form data across 3 Text fields on the form. The rest of the forms are not getting displayed. What am I doing wrong?
    Here is the part of the XML file Im trying to display on the form:
        FORM 1
        FORM 1 DESCRIPTION
        $5000
        FORM 2
        FORM 2 DESCRIPTION
        $7000
        FORM 3
        FORM 3 DESCRIPTION
        $4000
    Part of the schema that was created based on the XML file from above:
    Thank you.

  • PI mapping: concatenating multiple records to just one field

    Hi
    I am trying to concatenate an unknown number of records in the source message to just one field in the target message.
    The structure in the source message is:
    <simple>
       <record>
           <string>first string value</string>
       </record>
       <record>
           <string>second string value</string>
       </record>
       <record>
           <string>third string value</string>
       </record>
    <concatstring></concatstring>
    </simple>
    Where the number of records in the source message is unknown.
    The target message should look like this:
    <simple>
        <concatstring>first string value second string value third string value</concatstring>
    </simple>
    I tried using UDF:
    public String concat(String count,String streng,Container container){
    int counter = Integer.parseInt(count);
    String out = " ";
    for(int i=0;i<(counter);i++){
    out  = out + streng;
    return out;
    But that only picks up the value of the field in the first record and repeats that the number of counts.
    Can I avoid using a UDF? If not, what is the code?
    Looking forward to the answer
    Mikael

    Sarvesh,
    Sorry could not help noticing a copy and paste..atleast clean up and remove the lines highlighted in BOLD.
    <?xml version='1.0'?>
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="/">
    <GetCustomerInformationResponse>
    <GetCustomerInformationResult>
    <xsl:text disable-output-escaping="yes"><![CDATA[<![CDATAhttp://<?xml version=\"1.0\" encoding=\"UTF-8\"?>]></xsl:text>
    <xsl:copy-of select="*"/>
    <xsl:text disable-output-escaping="yes"><!CDATA[]]]></xsl:text>
    <xsl:text disable-output-escaping="yes"><![CDATA>]></xsl:text>
    </GetCustomerInformationResult>
    </GetCustomerInformationResponse>
    </xsl:template>
    </xsl:stylesheet> \
    Regards
    Ravi Raman

  • EJB Update one field

    Hi,
    Up until now, most of my forms in jsf have had all the fields in the ejb. So when I did mergeEntity all the fields where updated with the correct data. Now I have a form that has just the ID of the ejb and one field. Now when I do mergeEntity all the other fields are set to null. Shouldn't mergeEntity just update the field I am setting? What do I need to do to update just one field in the ejb without bringing all the other fields in or is there an easy why to do that?
    Thanks for you help. Any examples would be great!

    You're not supposed to put ## around it. That makes
    Coldfusion look for a variable named "originated" inside a
    structure named "affiliate", which obviously isn't what you want to
    do.
    In my query, I didn't have any hashes around field2.
    Change your query to:
    <CFQUERY datasource="#application.dsn#">
    UPDATE affiliate
    SET last_contacted = originated
    </CFQUERY>

  • How to delete the row in table control with respect to one field in module pool programming?

    Hi,
    Can I know the way to delete the row in table control with respect to one field in module pool programming
    Regards
    Darshan MS

    HI,
    I want to delete the row after the display of table control. I have created push button as delete row. If I click on this push button, the selected row should get deleted.
    I have written this code,
    module USER_COMMAND_9000 input.
    DATA OK_CODE TYPE SY-UCOMM.
    OK_CODE = SY-UCOMM.
    CASE OK_CODE.
         WHEN 'DELETE'.
            LOOP AT lt_source INTO ls_source WHERE mark = 'X'.
                APPEND LS_SOURCE TO LT_RESTORE.
                DELETE TABLE LT_SOURCE FROM LS_SOURCE.
                SOURCE-LINES = SOURCE-LINES - 1.
            ENDLOOP.
    But I'm unable to delete the selected rows, It is getting deleted the last rows eventhough I select the other row.
    So I thought of doing with respect to the field.

Maybe you are looking for

  • CADO Report - Missing Project Definition and WBS elements

    While running CADO (time sheet data) report for employee, data is not being pulled up for the WBS Element and Project Definition. What could be the reason? Here time is entered against a network activity but for some entries WBS element and project d

  • Part for officejet 6500

    I inherited a used officejet 6500 and need to get a part so the paper will feed properly. Remove duplexer if attached. There are some black plastic "fingers" pointing at a rod with wheels. One set of these "fingers" has broken (the pair on the right)

  • Illustrator 17.1 crashing opening eps files

    When I try and open or place an EPS file I am getting a text import option box... then Illustrator crashes.

  • JCA - Resource adapter information in ManagedConnectionFactory

    Hi, I am developing a Outbound Resource Adapter. Is there any way to get the Resource Adapter Object associated in ManagedConnectionFactory Implementation? Or is there a means by which we can pass on the configuration data (Like user name, password)

  • Copy to new image

    Using Photoshop Elements 4.0 on Mac with Leopard, I find no convenient way to copy a selection directly into a completely new document. I must first create a new document and then paste the selection in the new document. I used to have the more direc