MessageChoice does not return correct value

Hi
I am problem with MessgeChoiceBean's improver beharior
For the first time it retunrs blank and subsequently In one page if I select Yes, it returns No.
In another page it does not return any thing for the first two selections. And I reciev flip values.
I ran VO outside, VO is returning correct values.
MessageChoice attributes and associated PPR:
Data Type: Varchar2
Initial Value: N
Pick List view Definition: oracle.apps.xxx.docs.common.lov.server.YesNoVO
Pick List View Instance: YesNoVO3
Pick List Display Attribute: Meaning
Pick List Value AttributeL LookupCode
ActionType: firePartialAction
Event: handleNewLocationFlagChange
Parameter Name: newLocationFlag
Parameter Value: ${oa.CustomerInfoVO1.NewShipToLocationFlag}
ProcessParameterForm Code:
if ("handleNewLocationFlagChange".equals(event))
String newLocationFlag = pageContext.getParameter("newLocationFlag");
Serializable[] parameters = { ""+newLocationFlag};
Class[] paramTypes = { String.class};
am.invokeMethod("handleNewLocationFlagChange", parameters, paramTypes);
VO definition:
select LOOKUP_CODE,MEANING
FROM ONLINE_DOCS_LOOKUPS
WHERE ONLINE_DOCUMENT_CODE = 'ALL'
AND LOOKUP_TYPE = 'YESNO'
ORDER BY ATTRIBUTE1
View output:
LOOKUP_CODE     MEANING
N     No
Y     Yes
I have quite a bit number of columns to change render property.
Any help will be appreciated.
Thanks
Prasad

Your question is not clear, are you saying the values in the messageChoiceBean is not displayed properly. As far as I can see from the definition the poplist picks the values from a lookup(Yes, No) values and has a PPR action associated with it. Did you check what this method handleNewLocationFlagChange is doing in the AM ?

Similar Messages

  • NSV w/RT FIFO Read does not return correct value

    I have a cRIO which is hosting a NSV w/ RT FIFO enabled.  I can observe its value in the DSM.
    I have a LabVIEW exe that reads this NSV with a SV node on the diagram.  This read value is incorrect.
    If a run the same vi from the development environment then the correct value is read.  If I remove the RT FIFO option then 
    the exe version will work correctly.  According to the NI SV white paper, each reader of a NSV w RT FIFO recieves its own
    client side buffer so there should not be any interference.  It should be mentioned that I am also creating a SV reference to this same NSV on the cRIO
    for read only use.

    Hello,
    Have you tried using a Network Published shared variable to communicate between the host and target? This architecture would use a Network Published Shared Variable in a normal priority loop to pass data to a Single Process RT FIFO enabled shared variable on the target to move data to the time critical loop. Is the cRIO that you are accessing the only one present on the network? Also,. if you slow down your loop speeds, do you get correct values?
    -Zach
    Certified LabVIEW Developer

  • Fsbtodb macro in ufs_fs.h does not return correct disk address

    I'm using fsbtodb to translate the file inode block address to file system block address.
    What I've observed is fsbtodb returns corretct disk address for all the files if file system size < 1 TB.
    But, if ufs file system size is greater than 1 TB then for some files, the macro fsbtodb does not return correct value, it returns -ve value
    Is this a known issue and is this been resolved in new versions
    Thanks in advance,
    dhd

    returns corretct disk address for all the files if file system size < 1 TB.and
    if ufs file system size is greater than 1 TB then for some files, the macro fsbtodb does not return correct value, it returns -ve valueI seem to (very) vaguely recall that you shouldn't be surprised at this example of a functional filesize limitation.
    Solaris 9 was first shipped in May 2002 and though it was the first release of that OS to have extended file attributes I do not think the developers had intended the OS to use raw filesystems larger than 1TB natively.
    That operating environment is just too old to do exactly as you hope.
    Perhaps others can describe this at greater length.

  • LOV does not return the value (2)

    PPR in general does not work correctly if invalid HTML is generated. One example of an invalid HTML is having an opening <TD> tag immediately following another opening <TD> tag.
    After checking everything else, if LOV still does not return the value, test whether it's not a problem with the invalid HTML by placing the messageLovInput outside of the complicated layout nestings you may have. If it works outside of the layout nestings, look for the possible problems in the layout nestings.

    Hi RamKumar,
    Thanks for your reply.. I have already done that but no luck :(
    Regards,
    Hemanth J

  • Function does not return a value

    CREATE OR REPLACE PACKAGE BODY Promo_Version_Logo_Pkg IS
      FUNCTION Promo_Version_Logo_Rule(Rc IN test.Ot_Rule_Context)
        RETURN Ot_Rule_Activation_Result
       IS
        PRAGMA AUTONOMOUS_TRANSACTION;
        v_Result NUMBER;
        CURSOR Cur_Promo_Logos IS
          SELECT Pvlo.Promo_Id,
                 Evt.On_Date,
                 Evt.Channel_Id,
                 Evt.Start_Time,
                 Evt.Duration,
                 Pvlo.Logo_Id
            FROM Event                  Evt,
                 Event_Technical_Data   Etd,
                 Promo_Version_Logo_Opt Pvlo,
                 Promo_Timing           Pt
           WHERE Evt.Event_Technical_Data_Id = Etd.Event_Technical_Data_Id
                 AND Etd.Promo_Timing_Id = Pt.Promo_Timing_Id
                 AND Pt.Promo_Timing_Id = Pvlo.Promo_Timing_Id
                 AND Evt.Channel_Id = Rc.Channelid
                 AND Evt.On_Date >= Rc.Fromdate
                 AND Evt.On_Date <= Rc.Todate
                 AND Evt.Day_Type_Id = Rc.Daytype;
      BEGIN
        FOR Each_Record IN Cur_Promo_Logos LOOP
          v_Result := Testing_Pkg.Insert_Event(v_Channel_Id   => Each_Record.Channel_Id,
                                                           v_Tx_Time      => Each_Record.Start_Time,
                                                           v_Tx_Date      => Each_Record.On_Date,
                                                           v_Content_Id   => Each_Record.Logo_Id,
                                                           v_Duration     => Each_Record.Duration,
                                                           v_Event_Type   => Uktv_Tools_Pkg.c_Logo_Kind_Code,
                                                           v_Container_Id => Each_Record.Promo_Id);
          IF v_Result = -1
          THEN
            EXIT;
          END IF;
        END LOOP;
      END Promo_Version_Logo_Rule;
    END Promo_Version_Logo_Pkg;why do I get this "Hint: Function 'Promo_Version_Logo_Rule' does not return a value" after I compile it? The Testing_Pkg.Insert_Event should insert some values somewhere...I just want to try to test it before I move on onto the next bit of it, but I do not understand what I am doing wrong...
    Thanks

    You need something like:
        END LOOP;
        RETURN v_Result;  -- if this is what you are trying to get the function to do
        EXCEPTION
          WHEN OTHERS THEN
          <exception handling/logging - whatever you want>
          RAISE;  --this with then raise an error back to the calling process
      END Promo_Version_Logo_Rule;This way the function either returns a value, or an exception which can be handled in the calling procedure

  • Why is the giving me this error (method does not return a value) PLEASE !!

    I have this code and it is giving me this error and I don't know how to fix it
    can anyone out there tell me why
    I have included the next line of code as I have had problems in the curly brackets in the past.
    The error is
    "Client.java": Error #: 466 : method does not return a value at line 941, column 3
    Please help
    THX TO ALL
    private Date DOBFormat()
        try
          if
            (MonthjComboBox.getSelectedItem().equals("") || 
             DayjComboBox.getSelectedItem().equals("") ||
             YearjComboBox.getSelectedItem().equals("")){
          else
            String dateString = StringFromDateFields();
            SimpleDateFormat df = new SimpleDateFormat("dd/mm/yyyy");
            Date d = df.parse(StringFromDateFields());
            System.out.println("date="+d);
            return d;
        catch (ParseException pe)
          String d= System.getProperty("line.separator");
          JOptionPane.showMessageDialog( this,
           "Date format needs to be DD/MM/YYYY,"+ d +
           "You have enterd: "+ StringFromDateFields()   + d +
           "Please change the Date", "Date Format Error",
           JOptionPane.WARNING_MESSAGE);
          return  null;
      //File | Exit action performed
    public void jMenuFileExit_actionPerformed(ActionEvent e) {
      System.exit(0);
      }

    Fixed it needed to have a return null;
    this is the code
    if
            (MonthjComboBox.getSelectedItem().equals("") ||
             DayjComboBox.getSelectedItem().equals("") ||
             YearjComboBox.getSelectedItem().equals("")){
            return null;

  • Res.getPathTranslated() does not return correct URL of the page requested

    Hi,
    The res.getPathTranslated() statement in the below code (in doFilter method) does not return the correct URL of the requested webpage.
    Whenever a web page is accessed using a return statement (eg : return "nextPage"; ) inside a button's action method or a hyperlink's action method, the res.getPathTranslated() returns the URL of the current webpage instead of returning the URL of the webpage that is actually requested.
    For example if there is a button on the page http://localhost:29080/MyJaas/faces/firstPage.jsp
    And the button_action() is as follows
    button_action()
    return "nextPage";
    The res.getPageTranslaged() returns "http://localhost:29080/MyJaas/faces/firstPage.jsp" instead of "http://localhost:29080/MyJaas/faces/nextPage.jsp"
    However, if the webpage is requested by populating the URL property of the hyerlink in creator IDE, the res.getPathTranslated() returns the correct (requested) web page.
    How to make res.getPathTranslagted() return the correct URL when the webpage is accessed from hyperlink's / button's action method?
    I know that the explation is not very clear, so please bear with me. Let me know if you need more clarificatons. Thanks in advance for showing interest in this issue.
    And by the way, the code below is the same as that used in Jaas Authentication tutorial :- http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/jaas_authentication.html
    package jaasauthentication;
    import javax.servlet.Filter;
    import javax.servlet.FilterChain;
    import javax.servlet.FilterConfig;
    import javax.servlet.http.HttpSession;
    import javax.servlet.ServletRequest;
    import javax.servlet.ServletResponse;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    public class SecurityFilter implements Filter{
        /** Creates a new instance of SecurityFilter */
        private final static String FILTER_APPLIED = "_security_filter_applied";
        public SecurityFilter() {
        public void init(FilterConfig filterConfig) {
        public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws java.io.IOException, ServletException{
            HttpServletRequest req = (HttpServletRequest)request;
            HttpServletResponse res = (HttpServletResponse)response;
            HttpSession session = req.getSession();
            String requestedPage = req.getPathTranslated();
            String user=null;
            //We dont want to filter certain pages which include the Login.jsp/Register.jsp/Help.jsp
            if(request.getAttribute(FILTER_APPLIED) == null) {
                //check if the page requested is the login page or register page
                if((!requestedPage.endsWith("Login.jsp")) && (!requestedPage.endsWith("Register.jsp")) && (!requestedPage.endsWith("Help.jsp"))){
                    //Requested page is not login.jsp or register.jsp therefore check for user logged in..
                    //set the FILTER_APPLIED attribute to true
                    request.setAttribute(FILTER_APPLIED, Boolean.TRUE);
                    //Check that the session bean is not null and get the session bean property username.
                    if(((jaasauthentication.SessionBean1)session.getAttribute("SessionBean1"))!=null) {
                        user = ((jaasauthentication.SessionBean1)session.getAttribute("SessionBean1")).getUsername();
                    if((user==null)||(user.equals(""))) {
                        res.sendRedirect("Login.jsp");
                        return;
            //deliver request to next filter
            chain.doFilter(request, response);
        public void destroy(){
    }

    Guys any solution for the above problem?
    Right answer fetches 10 duke dollars..

  • Function Does Not Return any value .

    Hi ,
    I am wrtting the below funtion without using any cursor to return any message if the value enters by parameters
    does not match with the value reterived by the function select statement or it does not reterive any value that
    for the parameters entered .
    E.g:
    CREATE OR REPLACE FUNCTION TEST_DNAME
    (p_empno IN NUMBER,p_deptno IN NUMBER)
    RETURN VARCHAR2
    IS
    v_dname varchar2(50);
    v_empno varchar2(50);
    V_err varchar2(100);
    v_cnt NUMBER := 0;
    BEGIN
    SELECT d.dname,e.empno
    INTO v_dname ,v_empno
    FROM scott.emp e , scott.dept d
    WHERE e.empno=p_empno
    AND d.deptno=p_deptno;
    --RETURN v_dname;
    IF p_empno IS NOT NULL AND p_deptno IS NOT NULL
    THEN IF v_dname is NULL THEN
    v_err :='Not Valid';
    RETURN v_err;END IF;
    ELSIF p_empno IS NOT NULL AND p_deptno IS NOT NULL
    THEN IF v_dname is NOT NULL THEN
    RETURN v_dname; END IF;
    ELSE
    RETURN v_dname;
    END IF;
    END;
    Sql Statement
    SELECT TEST_DNAME(1234,30) FROM dual
    AND IF I enter a valid combination of parameter then I get the below error :
    e.g:
    SQL> SELECT TEST_DNAME(7369,20) FROM dual
    2 .
    SQL> /
    SELECT TEST_DNAME(7369,20) FROM dual
    ERROR at line 1:
    ORA-06503: PL/SQL: Function returned without value
    ORA-06512: at "SCOTT.TEST_DNAME", line 24
    Where I am missing .
    Thanks,

    Format you code properly and look at it:
    CREATE OR REPLACE
       FUNCTION TEST_DNAME(
                           p_empno IN NUMBER,
                           p_deptno IN NUMBER
        RETURN VARCHAR2
        IS
            v_dname varchar2(50);
            v_empno varchar2(50);
            V_err varchar2(100);
            v_cnt NUMBER := 0;
        BEGIN
            SELECT  d.dname,
                    e.empno
              INTO  v_dname,
                    v_empno
              FROM  scott.emp e,
                    scott.dept d
              WHERE e.deptno=d.deptno
                AND e.empno=p_empno
                AND d.deptno=p_deptno;
            --RETURN v_dname;
            IF p_empno IS NOT NULL AND p_deptno IS NOT NULL
              THEN
                IF v_dname is NULL
                  THEN
                    v_err :='Not Valid';
                    RETURN v_err;
                END IF;
            ELSIF p_empno IS NOT NULL AND p_deptno IS NOT NULL
              THEN
                IF v_dname is NOT NULL
                  THEN
                    RETURN v_dname;
                END IF;
             ELSE
               RETURN v_dname;
           END IF;
    END;
    /Both p_empno and p_deptno in
    SELECT TEST_DNAME(7369,20) FROM dualare not null. So SELECT will fetch some v_dname and v_empno. Since p_empno and p_deptno iare not null your code will go inside outer IF stmt and will execute its THEN branch. That branch consist of nothing but inner IF statement. And since v_dname is NOT NULL it will bypass that inner IF and exit the outer IF. And there is no RETURN stmt after that outer IF. As a result you get what you get - ORA-06503. Also, both if and elsif in your code check same set of conditions which makes no sense.
    SY.

  • UPDATE ... RETURNING does not return new value

    Hi all,
    I've created the following objects in Oracle DB 10.2.0.3.0:
    CREATE TABLE TAB1
         ID          NUMBER          PRIMARY KEY,
         EDITED_AT     DATE,
         VALUE          VARCHAR2(64)
    CREATE SEQUENCE S_TAB1
         INCREMENT BY 1
         START WITH 1;
    CREATE TRIGGER T_TAB1_BIE
    BEFORE INSERT OR UPDATE ON TAB1
    FOR EACH ROW
    BEGIN
         IF INSERTING THEN
              SELECT S_TAB1.NEXTVAL INTO :NEW.ID FROM DUAL;
         END IF;
         :NEW.EDITED_AT := SYSDATE;
    END;
    /Then I tried to do the following in SQL Plus:
    SQL> insert into tab1(value) values('ddd');
    1 row created.
    SQL> commit;
    Commit complete.
    SQL>
    SQL> select * from tab1;
            ID EDITED_AT           VALUE
             1 27.03.2008 17:01:24 ddd
    SQL>
    SQL> declare dt date; val varchar2(64);
      2  begin update tab1 set value = 'ddd' where id = 1 returning edited_at, value into dt, val;
      3  dbms_output.put_line('txt = ' || dt || ', ' || val);
      4  end;
      5  /
    txt = 27.03.2008 17:01:24, ddd
    PL/SQL procedure successfully completed.
    SQL>
    SQL> select * from tab1;
            ID EDITED_AT           VALUE
             1 27.03.2008 17:02:12 ddd
    SQL>As it can be seen Returning clause of an Update statement does not return a new date, i.e. 27.03.2008 17:02:12, that was updated by the trigger, it returns an old one - 27.03.2008 17:01:24. Please advise me why Database returns an old value? I do believe that UPDATE ... RETURNING ... statement should return new, generated by the trigger, value.
    Thanks in advance.
    Regards,
    Yerzhan.

    you need to explicitly include the column in your UPDATE statement SET clause that you expect to return the result you want it to be. here's what i think what happened even though you have a trigger the first statement that was processed was your update statement. at the time of the update it has to return the current values to the returning clause that is the values on the table. now comes next the trigger which gives edited_at column a new value. when the trigger got fired the process don't return anymore to the UPDATE RETURNING statement. it's like each sequence of codes does not executes in parallel.
      SQL> CREATE TABLE TAB_1
        2  (
        3   ID  NUMBER  PRIMARY KEY,
        4   EDITED_AT DATE,
        5   VALUE  VARCHAR2(64)
        6  );
      Table created.
      SQL> CREATE SEQUENCE S_TAB1
        2   INCREMENT BY 1
        3   START WITH 1;
      Sequence created.
      SQL> CREATE TRIGGER T_TAB1_BIE
        2  BEFORE INSERT OR UPDATE ON TAB_1
        3  FOR EACH ROW
        4  BEGIN
        5   IF INSERTING THEN
        6    SELECT S_TAB1.NEXTVAL INTO :NEW.ID FROM DUAL;
        7   END IF;
        8   :NEW.EDITED_AT := SYSDATE;
        9  END;
       10  /
      Trigger created.
      SQL> insert into tab_1(value) values('ddd');
      1 row created.
      SQL> commit;
      SQL> select * from tab_1;
              ID EDITED_AT            VALUE
               1 28-mar-2008 10:31:18 ddd
      SQL> declare dt date; val varchar2(64);
        2  begin update tab_1 set value = 'ddd', edited_at = sysdate
        3        where id = 1 returning edited_at, value into dt, val;
        4  dbms_output.put_line('txt = ' || dt || ', ' || val);
        5  end;
        6  /
      txt = 28-mar-2008 10:32:39, ddd
      PL/SQL procedure successfully completed.
      SQL> select * from tab_1;
              ID EDITED_AT            VALUE
               1 28-mar-2008 10:32:39 ddd
      SQL>

  • When LOV does not return the value

    Check that you are not calling setText(String) on the web bean to set the default value. It causes your bean to no longer draw the value from the underlying VO. One of the symptoms is that selecting a value from the LOV modal window will not return that value to the base page. (The value from the LOV will actually be set on the VO, but the UI won't reflect it.)
    Setting the default value in the model layer is prefered. You can do this by overriding the create(AttributeList nameValuePair) method of OAEntityImpl or OAViewRowImpl.
    If, for some reason, you need to set the default value from the client side, you need to call setText with the pageContext, e.g., setText(pageContext, "myDefault");

    Hello
    Upon giving your question further thought I think that you would be better off if you added an 'id' column to table T1 and referenced this 'id' column in table T2 . Something like
    Table_T1(id number, c1 varchar2(100)
    and
    Table_T2(.other_columns.. ,t1_id)
    Your LOV will now be select c1 display,id return from table_t1The column t1_id will be defined to use this LOV.
    You will need no other modifications to the form on table_t2
    Varad

  • LOV does not return the value (1)

    Avoid calling setText on the web bean to set the default value. It causes your bean to no longer draw the value from the underlying VO. One of the symptoms is that selecting a value from the LOV modal window will not return that value to the base page. (The value from the LOV will actually be set on the VO, but the UI won't reflect it.)
    Setting the default value in the model layer is prefered. You can do this by overriding the create(AttributeList nameValuePair) method of OAEntityImpl or OAViewRowImpl.
    If, for some reason, you need to set the default value from the client side, you need to call setText with the pageContext, e.g., setText(pageContext, "myDefault");

    Hi RamKumar,
    Thanks for your reply.. I have already done that but no luck :(
    Regards,
    Hemanth J

  • FM SPE_CALCULATE_PRICE - Java Call does not return Net Value of Sales Order

    Dear Experts,
    we want to make a call of FM SPE_CALCULATE_PRICE from the SAP NetWeaver Developer Studio to achieve that we receive the Net Value of a Sales Order. When we try to test the Scenario in SAP CRM (Creation of a Sales Order) Itself all is working fine. But if we try to make the call from Developer Studio it does not work for some reason. We have applied SAP Note 1936255.
    I am attaching:
    - the Pricing Trace we receive as a result from SAP.
    The Java Code we use is the following:
    Code JAVA
    import com.sap.mw.jco.*;
    import com.sap.mw.jco.JCO.ParameterList;
    import com.sap.mw.jco.JCO.Structure;
    import com.sap.mw.jco.JCO.Table;
    public class callIPCDemo {
    public static void main(String[] args) {
      System.out.println("--- START ---");
      // connect to SAP system
      JCO.Client client = null;
      try {
      client = JCO.createClient(
        "400", // SAP client
        "XXXX", // User ID
        "XXXXXXXX", // Password
        "EN", // Language
        "XXX.XXX.XX.XXX", // IP des hosts
        //"QPMR-CR20", // Hostname
              "00"); // System number
      client.connect();
      System.out.println("Connection OK\n");
      catch (Exception ex) {
      System.out.println(ex);
      return;
      // print RFC attributes
      System.out.println(client.getAttributes());
      // create JCo repository
      JCO.Repository repository = new JCO.Repository("testIPCcall", client);
      // Function Module SPE_CALCULATE_PRICE
      IFunctionTemplate ft = repository.getFunctionTemplate("SPE_CALCULATE_PRICE");
      JCO.Function function = null;
      try {
      function = ft.getFunction();
      } catch (Exception ex) {
      System.out.println(ex);
      return;
      // IS_HEADER_INPUT
      ParameterList importParameterList = function.getImportParameterList();
      Structure HeaderInput = importParameterList.getStructure("IS_HEADER_INPUT");
      HeaderInput.setValue("005056A7005E1ED3A7AD22549B279B91", "DOCUMENT_ID");
      HeaderInput.setValue("CRM", "APPLICATION");
      HeaderInput.setValue("ZCRM02", "PRC_PROCEDURE_NAME");
      HeaderInput.setValue("EUR", "DOCUMENT_CURRENCY_UNIT");
      HeaderInput.setValue("EUR", "LOCAL_CURRENCY_UNIT");
      HeaderInput.setValue("X", "PERFORM_TRACE");
      // IS_HEADER_INPUT-ATTRIBUTES (substructure/table)
      Table HeaderInputAttributes = HeaderInput.getTable("ATTRIBUTES");
      HeaderInputAttributes.appendRows(3);
      Table valuesTable = null;
      HeaderInputAttributes.setRow(0);
      HeaderInputAttributes.setValue("DIS_CHANNEL", "FIELDNAME");
      valuesTable = HeaderInputAttributes.getTable("VALUES");
      valuesTable.appendRows(1);
      valuesTable.setValue("01", 0);
      HeaderInputAttributes.setRow(1);
      HeaderInputAttributes.setValue("SALES_ORG", "FIELDNAME");
      valuesTable = HeaderInputAttributes.getTable("VALUES");
      valuesTable.appendRows(1);
      valuesTable.setValue("O 50000151", 0);
      HeaderInputAttributes.setRow(2);
      HeaderInputAttributes.setValue("SOLD_TO_PARTY", "FIELDNAME");
      valuesTable = HeaderInputAttributes.getTable("VALUES");
      valuesTable.appendRows(1);
      valuesTable.setValue("005056A7005E1ED3A7ACEFCAD95FBB91", 0);
      importParameterList.setValue(HeaderInput, "IS_HEADER_INPUT");
      // IT_ITEM_MAIN_INPUT
      String itemGuid = "005056A7005E1ED3A7AD3F004CD85B91";
      ParameterList tableParameterList = function.getTableParameterList();
      Table tableItems = tableParameterList.getTable("IT_ITEM_MAIN_INPUT");
      tableItems.appendRows(1);
      tableItems.setValue(itemGuid, "ITEM_ID");
      tableItems.setValue("005056A7005E1EE39289A0FB457C9D8A", "PRODUCT_ID");
      tableItems.setValue("M", "EXCH_RATE_TYPE");
      tableItems.setValue("10", "QUANTITY");
      tableItems.setValue("PC", "QUANTITY_UNIT");
      // IT_ITEM_ATTRIB_INPUT
      Table tableItemAttributes = tableParameterList.getTable("IT_ITEM_ATTRIB_INPUT");
      tableItemAttributes.appendRows(2);
      tableItemAttributes.setValue(itemGuid, "ITEM_ID");
      tableItemAttributes.setValue("PRODUCT", "FIELDNAME");
      tableItemAttributes.setValue("005056A7005E1EE39289A0FB457C9D8A", "FIELDVALUE");
      tableItemAttributes.nextRow();
      tableItemAttributes.setValue(itemGuid, "ITEM_ID");
      tableItemAttributes.setValue("PRC_INDICATOR", "FIELDNAME");
      tableItemAttributes.setValue("X", "FIELDVALUE"); 
      // IT_ITEM_TIMESTMP_INPUT
      Table tableTimestamps = tableParameterList.getTable("IT_ITEM_TIMESTMP_INPUT");
      tableTimestamps.appendRows(3);
      tableTimestamps.setValue(itemGuid, "ITEM_ID");
      tableTimestamps.setValue("PRICE_DATE", "FIELDNAME");
      tableTimestamps.setValue("20140225000000", "TIMESTAMP");
      tableTimestamps.nextRow();
      tableTimestamps.setValue(itemGuid, "ITEM_ID");
      tableTimestamps.setValue("PRT_DELIVERYDATE", "FIELDNAME");
      tableTimestamps.setValue("20140225000000", "TIMESTAMP");
      tableTimestamps.nextRow();
      tableTimestamps.setValue(itemGuid, "ITEM_ID");
      tableTimestamps.setValue("PRT_ORDERDATE", "FIELDNAME");
      tableTimestamps.setValue("20140225000000", "TIMESTAMP");
      // execute function module
      try {
      client.execute(function);
      } catch (Exception ex) {
      System.out.println(ex);
      return;
      // check result
      JCO.Structure structureHeaderResult = function.getExportParameterList().getStructure("ES_HEADER_RESULT");
      System.out.println("Net Value: " +
        structureHeaderResult.getValue("NET_VALUE"));
      JCO.Table tableHeaderResult = function.getExportParameterList().getTable("ET_TRACE");
      System.out.println(tableHeaderResult.getNumRows());
      for(int x = tableHeaderResult.getNumRows(); x <= tableHeaderResult.getNumRows(); x = x + 1) {
      tableHeaderResult.setRow(x);
      System.out.println("Trace: " + x + tableHeaderResult.getValue("ACCESS_TRACE_XML"));
      // disconnect from SAP system
      client.disconnect();
      System.out.println("--- END ---");

    Thanks.
    I'll have to discuss VTAA pricing types with the Business Analyst, since there are many records and I'm not sure what I'm looking at.
    In regards to your second point, it's not in calculation. It'll stay at that number until you save, check the conditions tab in the header or reprice the document.
    What's interesting is that it doesn't do this for all materials.
    For example:
    Material 1 - priced $25
    Material 2 - priced $25
    Net price would be $50, which is correct.
    But say we use Material 3 - priced $25 as well. For this one, the total net price could show up as $30.
    Can pricing types be specific to materials or material groups? What is the pricing type exactly and why 'A'?

  • RUN_REPORT_OBJECT does not return  a value

    I am using Reports 6i (via web browser) on an Oracle 8 database.
    We have just recreated our entire development database. When running a report from a form, the web browser pops up with a blank screen. No changes has been done to the code. None of the reports now work on our dev environment.
    However, I have now found that RUN_REPORT_OBJECT is not retirning a value. What would cause RUN_REPORT_OBJECT not to return a value?
    My code behind the button on the form that calls the report is as follows:
              report_id := find_report_object('nl4689');
              f_file_name := :illprint.report_number||'.lis';
              html_file_name := :illprint.report_number||'.html';
              set_report_object_property(report_id,report_execution_mode,batch);
              set_report_object_property(report_id,report_comm_mode,synchronous);
              set_report_object_property(report_id,report_destype,file);
              set_report_object_property(report_id,report_desname,:global.user_home_dir||f_file_name);
              set_report_object_property(report_id, report_other,
              'p_branch='||:b1.branch_code||
              ' p_class='||:b1.p_class);
         report_job_id := RUN_REPORT_OBJECT(report_id);
              host('txt2htmlhpux '||:global.user_home_dir||f_file_name||' > '||:global.user_home_dir||html_file_name);
              web.show_document(:global.user_home_dir||html_file_name,'_BLANK');
    Thanks

    That is set correctly. All these applications were working fine. We only have this issue after re-building our development environment.
    I have personally run the application and noticed that there are error messages as well.
    When getting the report id from RUN_REPORT_OBJECT, the following error appears
    REP-0004: Warning: Unable to open user preference file.
    Immeditely followed by:
    REP-3002: Error initializing printer. Please make sure a printer is installed.
    Edited by: Rick777 on 20-Jan-2010 03:34
    Edited by: Rick777 on 20-Jan-2010 03:39

  • Get_num_value not returning correct value

    Hello,
    I anm developing with Designer/Headstart 9i. I'll try to be clear on my problem. I am using the function get_num_value form one of my table CAPI. Here is the scenario
    1. I do a get_num_value and get 2 as a value
    2. I update the column to -1.
    3. A business rule does not permit the update so I rollback
    4. I do the same get_num_value on the column and I get -1
    So what is happening is that the function get_num_value is calling a function get_row. The function get_row checks to see if the row has already been fetched and it returns the value in it's cached variables rather than fetching the value with the tapi slct procedure. Even if I put the same_record parameter to false, it's checks the cached variables before the parameter. Here is a test case and this problem occurs with any CAPI table.
    serveroutput ON
    DECLARE
    v1 NUMBER;
    BEGIN
    v1 := Gem_Lot_Capi.get_num_value('PROFONDEUR',4122263);
    dbms_output.put_line('Value before' || TO_CHAR(v1));
    UPDATE GEM_LOTS SET profondeur = -1
    WHERE id = 4122263;
    v1 := Gem_Lot_Capi.get_num_value('PROFONDEUR',4122263);
    dbms_output.put_line('Value after' || TO_CHAR(v1));
    EXCEPTION
    WHEN OTHERS THEN
    v1 := Gem_Lot_Capi.get_num_value('PROFONDEUR',4122263);
    dbms_output.put_line('Value exception after ' || TO_CHAR(v1));
    SELECT profondeur
    INTO v1
    FROM GEM_LOTS
    WHERE id = 4122263;
    dbms_output.put_line('Value exception select ' || TO_CHAR(v1));
    END;
    Value before 21.34
    Value EXCEPTION after -1
    Value EXCEPTION SELECT 21.34
    If anyone has suggestions, I would appreciate it.
    Thanks

    Yes I did find a solution. We copied the Headstart packages and modified the code of the get_row function. The new version of the function is to always do a fetch in the database using the tapi slct. Here is the function
    function get_row
    ( p_same_record in boolean
    , p_id in number
    return cg$age_assignations.cg$row_type
    -- Purpose Return row identified by Primary Key parameters
    -- Usage From get_column_value functions
    is
    l_row cg$age_assignations.cg$row_type;
    l_tbl_index number(10);
    begin
    l_row.id := p_id;
    -- select row from database using TAPI procedure
    -- slct procedure will handle non-existing row
    cg$age_assignations.slct(l_row);
    g_cached_row := l_row;
    return l_row;
    end get_row;
    Since the get_yyy_value functions are not used by the capi itself, there is no risk involed by doing this. As for database performance, there is no difference since the last row fetched is still in memory when doing a second get_yyy_value on the same record, it's the same as using the global variables.
    If you need more info, I can have the developper zip the packages he had to copy and modify and send them to you. Just reply to this message and give me you e-mail.

  • PIE Graph does not return when values = 0

    I use this code to create a PIE Chart
    select null LINK
    ,'E0' LABEL
    ,(select count(*)
    from parts
    where om_geometry like 'E0'
    start with childid = :P1_SELECTED_NODE
    connect by prior childid = parentid) VALUE
    from parts where childid = :P1_SELECTED_NODE
    union
    select null LINK
    ,'E1' LABEL
    ,(select count(*)
    from parts
    where om_geometry like 'E1'
    start with childid = :P1_SELECTED_NODE
    connect by prior childid = parentid) VALUE
    from parts where childid = :P1_SELECTED_NODE
    union
    select null LINK
    ,'E2' LABEL
    ,(select count(*)
    from parts
    where om_geometry like 'E2'
    start with childid = :P1_SELECTED_NODE
    connect by prior childid = parentid) VALUE
    from parts where childid = :P1_SELECTED_NODE
    union
    select null LINK
    ,'E3' LABEL
    ,(select count(*)
    from parts
    where om_geometry like 'E3'
    start with childid = :P1_SELECTED_NODE
    connect by prior childid = parentid) VALUE
    from parts where childid = :P1_SELECTED_NODE
    union
    select null LINK
    ,'E4' LABEL
    ,(select count(*)
    from parts
    where om_geometry like 'E4'
    start with childid = :P1_SELECTED_NODE
    connect by prior childid = parentid) VALUE
    from parts where childid = :P1_SELECTED_NODE
    It works beautifully, except when each of the values returned equate to zero.
    When this is the case the svg chart is not returned. Any ideas?

    That will come in handy. I have some line graphs to do as well. I am using version 2.2 so i don't think they fixed it. However, i have some good news i have found a work around to my problem. With my set of data i am always going to be bringing back at max 5 values for the data, so i created an item type for each one and set a value in a temporary table. e.g.
    declare
    l_id number;
    begin
    delete from graph_temp where name like 'E0' and graph_name like 'P1_GEOM';
    select count(*) into l_id
    from parts
    where om_geometry like 'E0'
    start with childid = :P1_SELECTED_NODE
    connect by prior childid = parentid;
    if l_id > 0 then
    insert into graph_temp (name,value, graph_name) values ('E0',l_id,'P1_GEOM');
    end if;
    return l_id;
    end;
    As you can see the table only gets populated when the value is greater than zero. My graph then becomes a simple select from the graph_temp table. The only change i now need to make is to have a session id column in the graph_temp table so i only remove the correct session info each time.

Maybe you are looking for