Problem using Order by  in forms 6i

Hi
The forms version I have 6.0.8.14.
I trying to write a query that looks like this
select * from (
select rownum, a.*
from (select x , y, z from xyz_table
order by x, y asc)
) b
order by b.z
The form does not compile and gives errors pointing to the order by clause order by x, y asc.
Can anyone tell me why this happens and the solution for this.
Thanks

I don't have any issue to do your SQL(revise it a bit),
select * from (
select rownum AS row_num, a.*
from (select x , y, z from xyz_table
order by x, y asc) a
) b
order by 4
What I did is first use wizard to build a tabular form based on the table xyz_table, then manually add a column called ROW_NUM, then on the block's property, replace the table name xyz_table with (above sql), then it works well.
don't forget the '()'.
Also, you have to change the column name to not be the ROWNUM.
My forms builder version is Forms [32 Bit] Version 6.0.8.11.3 (Production).

Similar Messages

  • Problem in order by in forms

    hi guys
    i m having a problem in ordering by in a detail block .
    actually i have a dummy block on whose basis records are populated in a detail block the
    when_button_press has
    go_block('x');
    execute_query;
    there is a where clause in the block level and no order by clause.
    althogh the query which is generated by forms when run on sql gives me the desired result but not in the forms.
    also for elaboration the ordering is to be done on the basis of another table which stores the display order for the records so when I tried using both tables in the forms block QUERRY DATA SOURCE NAME and joined the 2 table in the where and order by caluse of the block level and the column source at the field level was given table_name.column_name but the query build by the form inclued the rrowid for the table whICH i CAN NOT alias so there was a problem in the query genetration and hence the result
    please tell me what is the problem here...
    thankx
    dg

    ok guys dont scratch ur heads the problem has been solved
    thankx anyway
    dg

  • Problem using DBMS_SQL in a form

    hi,
    I am trying to write a procedure which get an input string containing a SQL statement (a SELECT), executes it, fetches the rows and writes them into a Excel sheet. I found this article http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sql.htm describing how to use DBMS_SQL package. My goal is to parse my query and store result in an array (using DEFINE_ARRAY).
    I put theese two lines
    (declare c number;)
    c := dbms_sql.open_cursor;
    dbms_sql.parse(c,p_query,dbms_sql.native); (p_query is my input string containing SQL)
    But when I compile my program unit I get an error looking like that: "implementation restriction: DBMS_SQL.NATIVE: unable to access a remote package variable or cursor".
    Where is the error? should I set something to access the package, or is it not possible to use it inside a form?

    W1zard is correct. Switch to Exec_SQL. Oracle does not support Forms using DBMS_SQL.
    Now... please explain why you are not using a dynamic record group. It is SOOO much easier!
    And if you want to look at some code using both methods, Exec_SQL and dynamic record group, you can download my "Quick Access" dynamic utility form, here:   Oracle Forms Utilities

  • XMLAGG - Problem using Order By (version 10.1.0.2.0)

    Hi.
    Below is a function I am having a problem compiling when I include the order by parameter on the XMLAGG. If I remove the order by, it compiles fine. I can run the Select statement in SQL Plus (without it being a part of the function) and it works fine. However, as a part of a function it will not work. I am using Oracle 10g 10.1.0.2.0.
    Any Ideas?
    CREATE OR REPLACE
    FUNCTION XML_LEVELPRODUCTS(FULLORDERNO_IN VARCHAR2 DEFAULT NULL)
    RETURN XMLPKG.xml_type
    AS
    XML xmlpkg.xml_type;
    BEGIN
    OPEN XML FOR
    SELECT
    XMLELEMENT("ORDERLINE",
    XMLELEMENT("ORDERNO",S.ORDERNO),
    XMLELEMENT("PRODUCT_TOTAL",F.PRODUCTDOLLARS),
    XMLELEMENT("POSTAGE",F.POSTAGE_HANDLING),
    XMLELEMENT("SALES_TAX",F.SALES_TAX),
    XMLELEMENT("TOTAL",F.ORDER_TOTAL),
    XMLELEMENT("SHIP_METHOD",(select RTRIM(DESCSHORT) from SHIPMETHODS where CODIVSM = COMPANY || DIVISION || SHIPMETHOD AND ROWNUM < 2)),
    XMLELEMENT("SHIP_DATE",TO_CHAR(TO_DATE(SHIPDATE,'YYYYMMDD'), 'MONTH DD, YYYY')),
    (SELECT
    XMLELEMENT("SHIP_ADDRESS",
    XMLELEMENT("CUSTOMER_ID",CUSTOMER.CUSTEDP),
    XMLELEMENT("CUST_NUM",CUSTNO),
    XMLELEMENT("COMPANY_NAME",RTRIM(NAMEX)),
    XMLELEMENT("LAST",RTRIM(LNAME)),
    XMLELEMENT("MI",RTRIM(MI)),
    XMLELEMENT("FIRST",RTRIM(FNAME)),
    XMLELEMENT("FULL_NAME",buildFullName(FNAME,MI,LNAME)),
    XMLELEMENT("PREFIX",CASE SUBSTR(M.CTLDATA,1,1)
    WHEN 'P' THEN RTRIM(SUBSTR(M.CTLDATA,9,40))
    ELSE ''
    END),
    XMLELEMENT("SUFFIX",CASE SUBSTR(M.CTLDATA,1,1)
    WHEN 'S' THEN RTRIM(SUBSTR(M.CTLDATA,9,40))
    ELSE ''
    END),
    XMLELEMENT("STREET",RTRIM(STREET)),
    XMLELEMENT("REF1",RTRIM(REF1)),
    XMLELEMENT("REF2",RTRIM(REF2)),
    XMLELEMENT("CITY",RTRIM(CITY)),
    XMLELEMENT("STATE",RTRIM(STATE)),
    XMLELEMENT("ZIP",RTRIM(ZIP)),
    XMLELEMENT("COUNTRY",(select RTRIM(COUNTRYNAME) from COUNTRIES WHERE COUNTRY= COUNTRYCODE)),
    XMLELEMENT("DAYPHONE",RTRIM(formatPhone(DAYPHONE))),
    XMLELEMENT("NIGHTPHONE",RTRIM(formatPhone(NIGHTPHONE))),
    XMLELEMENT("FAX",RTRIM(formatPhone(FAXPHONE)))
    FROM CUSTOMERS CUSTOMER
    LEFT outer join CUSTOMERPHONE p on p.CUSTEDP = CUSTOMER.CUSTEDP
    LEFT OUTER JOIN CUSTOMERADDL A on A.CUSTEDP = CUSTOMER.CUSTEDP
    LEFT OUTER JOIN CTLMAST M ON M.CTLID = '0000TITLE' || CUSTOMER.TITLE
    WHERE S.SHIPCUSTNO = CUSTOMER.CUSTEDP
    (SELECT XMLAGG(
    XMLELEMENT("PRODUCT",
    XMLELEMENT("SLOTID",SLOTID),
    XMLELEMENT("FULLORDERNO",FULLORDERNO),
    XMLELEMENT("EDPNO",EDPNO),
    XMLELEMENT("ITEMNO",ITEMNO),
    XMLELEMENT("DESCRIPTION",DESCRIPTION),
    XMLELEMENT("LINENUM",LINENUM),
    XMLELEMENT("QTY",QTY),
    XMLELEMENT("PRICE",PRICE),
    XMLELEMENT("PRODUCT_TYPE",PRODUCT_TYPE),
    XMLELEMENT("STATUS",STATUS),
    XMLELEMENT("SHIP_METHOD",(select DESCLONG from SHIPMETHODS where CODIVSM = COMPANY || DIVISION || SHIPMETHOD AND ROWNUM < 2)),
    XMLELEMENT("SHIP_DATE",SHIPDATE),
    (SELECT
    XMLAGG(XMLELEMENT("SERIALNUMS",
    XMLELEMENT("SERIALNUM", SUBSTR(AC.ACTIONCD,1,30))
    FROM ORDERACTIONS AC
    WHERE AC.MESSAGECD = 'SER-NO' AND
    AC.FULLORDERNO = P.FULLORDERNO
    ) ORDER BY P.LINENUM
    FROM CM_ORDER_PRODUCTS P
    where P.FULLORDERNO = S.FULLORDERNO
    FROM CM_ORDER_LEVELS S
    LEFT OUTER JOIN CM_SHIP_FINANCIALS F on S.FULLORDERNO = F.FULLORDERNO
    where S.FULLORDERNO = FULLORDERNO_IN;
    RETURN XML;
    END;
    The compile error is 'PLS-00306: wrong number or types of arguments in call to 'XMLAGG'.

    Here an answer from askTom:
    Hi Tom,
    I am not sure if I can ask this question in this thread or whether you are aware
    of the following problem (as you are very fond of SQL*plus... ;) ).
    I was happily usig toad 7.6 to work with oracle 9i. But now an upgrade to 10g
    has caused toad fail to connect. Error "OCI version 10.1.0.2.0 is not
    supported". But if I install 9i client and try to connect, then it works fine.
    Is there any workaround?
    Thanks and regards
    Praveen
    Followup:
    you'd have to ask the makers of toad if they have a 10g client version or not.
    Basically what is happening is that you have a 9i compiled piece of client
    software (toad).
    it uses, it depends on the 9i client software.
    in order to use the 10g client software -- you'd need a new binary from the
    makers of toad.
    SQLPlus would be the same -- the 9i sqlplus needs the 9i client, the 10g sqlplus
    needs the 10g client and so on.
    As it is -- you are OK right now, you have installed the software needed by toad
    and a 9i client connecting to a 10g database is "ok, supported and normal"

  • Problem using standard spa script form

    hi all,
          can anyone help me on this issue i have a problem with using standard form name,the standard form name is J_1I_57F4 and program name is J_1I57FPN.in
    standard form name when you go to main window you will find element as item_values. under that there are field names . so instead of "&J_1IINDCUS-J_1ISUBRAT(C)&" i have to add field which shows 16.4 percent of "&J_1IEXCDTL-EXBAS(C)& ". so how can we write this please check this out and let me know if there is anything to do and how to do it.how can we define it in form and how to write the subroutines for that and perform it in form.please help me out.

    u need to copy both the program and script in Z.
    after that attach that zprogram and script in ur standard transaction from the SPRO or NACE transaction....
    reward points if useful....

  • Problem using Auto Generated Task Form with Autogenerated ADF controls

    Sorry bothering you again, but I'm in troubles again.
    I'm using an autogenerated page for a human task with adf controls. Generates fine, it's deployed in App Server and runs Ok, buth when you try to see the form, you get this error:
    500 Internal Server Error
    Servlet error: Security sensitive exception occured. Please consult application log for details.
    And in the log, I got:
    oracle.classloader.util.AnnotatedNoClassDefFoundError:
         Class not found:oracle.classloader.util.AnnotatedNoClassDefFoundError
         Dependet class: oracle.bpel.services.workflow.adfforms.BPELWFDCDef
         Loader: oracle.bpel.common:10.1.3
         Origen : /C:/programs/com/oracle/SOASuite/10.1.3.1/bpel/system/services/lib/bpm-services.jar
         Configuration: <code-source> in /C:/programs/com/oracle/SOASuite/10.1.3.1/j2ee/oc4j_soa/config/server.xml
    Class can be found in:
         1. Code origen: /C:/programs/com/oracle/SOASuite/10.1.3.1/BC4J/jlib/adfui.jar (from <code-source> in /C:/programs/com/oracle/SOASuite/10.1.3.1/j2ee/oc4j_soa/config/server.xml)
         Este origen de código está disponible en el cargador adf.oracle.domain:10.1.3.
         Este origen de código está disponible en el cargador adf.generic.domain:10.1.3.
         2. Origen de Código: /C:/programs/com/oracle/SOASuite/10.1.3.1/BC4J/lib/adfm.jar (from <code-source> in /C:/programs/com/oracle/SOASuite/10.1.3.1/j2ee/oc4j_soa/config/server.xml)
         Este origen de código está disponible en el cargador adf.oracle.domain:10.1.3.
         Este origen de código está disponible en el cargador adf.generic.domain:10.1.3.
         at oracle.classloader.PolicyClassLoader.defineClass(PolicyClassLoader.java:2264)
         at oracle.classloader.PolicyClassLoader.findLocalClass(PolicyClassLoader.java:1462)
         at oracle.classloader.SearchPolicy$FindLocal.getClass(SearchPolicy.java:167)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.SearchPolicy.loadClass(SearchPolicy.java:645)
         at oracle.classloader.SearchPolicy$CheckSharedLibraries.getClass(SearchPolicy.java:396)
         at oracle.classloader.SearchSequence.getClass(SearchSequence.java:119)
         at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1674)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1635)
         at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1620)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         at java.lang.Class.forName0(Native Method)
         at java.lang.Class.forName(Class.java:242)
         at oracle.jbo.common.java2.JDK2ClassLoader.loadClassForName(JDK2ClassLoader.java:38)
         at oracle.jbo.common.JBOClass.forName(JBOClass.java:164)
         at oracle.adf.model.adapter.DataControlFactoryImpl.createSession(DataControlFactoryImpl.java:132)
         at oracle.adf.model.binding.DCDataControlReference.getDataControl(DCDataControlReference.java:76)
         at oracle.adf.model.BindingContext.get(BindingContext.java:457)
         at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:280)
         at oracle.adf.model.binding.DCUtil.findSpelObject(DCUtil.java:248)
         at oracle.adf.model.binding.DCUtil.findContextObject(DCUtil.java:383)
         at oracle.adf.model.binding.DCIteratorBinding.<init>(DCIteratorBinding.java:128)
         at oracle.jbo.uicli.binding.JUIteratorBinding.<init>(JUIteratorBinding.java:60)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.<init>(JUMethodIteratorDef.java:138)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef.createIterBinding(JUMethodIteratorDef.java:93)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef.createIterBinding(JUMethodIteratorDef.java:84)
         at oracle.adf.model.binding.DCIteratorBindingDef.createExecutableBinding(DCIteratorBindingDef.java:277)
         at oracle.adf.model.binding.DCBindingContainerDef.createExecutables(DCBindingContainerDef.java:296)
         at oracle.adf.model.binding.DCBindingContainerDef.createBindingContainer(DCBindingContainerDef.java:425)
         at oracle.adf.model.binding.DCBindingContainerReference.createBindingContainer(DCBindingContainerReference.java:54)
         at oracle.adf.model.binding.DCBindingContainerReference.getBindingContainer(DCBindingContainerReference.java:44)
         at oracle.adf.model.BindingContext.get(BindingContext.java:483)
         at oracle.adf.model.BindingContext.findBindingContainer(BindingContext.java:313)
         at oracle.adf.model.BindingContext.findBindingContainerByPath(BindingContext.java:633)
         at oracle.adf.model.BindingRequestHandler.isPageViewable(BindingRequestHandler.java:261)
         at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:165)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:178)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:302)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].server.http.AJPRequestHandler.run(AJPRequestHandler.java:190)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind[Oracle Containers for J2EE 10g (10.1.3.1.0) ].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    There is something I must add?

    See if this helps -
    https://forums.oracle.com/thread/2460140

  • Problems with the System.Windows.Forms.Timer

    Hi All,
    Could some one help me please? I'm having a problem using the System.Windows.Forms.Timer inside an ItemEvent, the timer event just doesn't works...give a look in my code:
    private System.Windows.Forms.Timer myTimer = new System.Windows.Forms.Timer();
    if (pVal.FormUID.Equals("FrmTimer") && pVal.ItemUID.Equals("btnStartTimer") && (pVal.Before_Action.Equals(true)) && (pVal.EventType.Equals(SAPbouiCOM.BoEventTypes.et_CLICK)))
                myTimer .Interval = 1000;
                myTimer .Enabled = true;
                myTimer .Tick += new EventHandler(myTimer _Tick);
    void myTimer _Tick(object sender, EventArgs e)
                SBO_Application.MessageBox("Timer: " + DateTime.Now, 1, "OK", "", "");
    does someone have already tried to use the timer inside an itemevent, or could suggest another solution?
    thanks a lot...

    Hi Bruno,
    Unfortunately you cannot use a Forms.Timer without using a windows form (ie not a SBO form). Have you looked at the other 2 timer objects in .Net, the System.Timer.Timer and System.Threading.Timer? Here's a link to a web page that goes through the differences between each one:
    http://msdn.microsoft.com/msdnmag/issues/04/02/TimersinNET/
    Kind Regards,
    Owen

  • How to use "Order by" clause dynamically on LOV values in 10g r2 forms

    Hi ,
    I have following requirement,please guide me.
    1 Create a List Of Values with 2 fields, Code and Description
    2. Do not use order by clause in record Group Query
    3. Attach this LOV to a field in Form
    4. When user invokes the LOV user will see two fields in LOV with header as Code and Description
    5. Now when user clicks on Column Header “Code” then LOV should be sorted on Code
    6. And if User clicks on Column Header “Description” then LOV should be sorted on Description
    Thanks in Advance.

    Kindly post this problem in this forum ->
    [Forms Forum|http://forums.oracle.com/forums/forum.jspa?forumID=82]
    And, close this thread by marked it as answered. ;)
    Regards.
    Satyaki De.

  • Master Detail Form - Problem using built in wizard

    Hi There
    We are working on Application express 2.2.
    We are facing problems for a master detail form using Wizard. The
    details are as follows : >>
    1) Master table : TS_ENTRY_TXN
    trans_id P.K.
    2) Detail table : TS_ENTRY_TXN_DETAIL
    a)trans_id
    b)sub_trans_id Composite P.K.(trans_id,sub_trans_id) & these are
    based on sequences.
    If i try to build a master detail form using the Wizard, the options
    for providing P.K. for master & detail are listed which we used.
    As it is a master detail form, we want to carry trans_id to the detail
    for updations/insertions which doesn't happen.
    The MRU fails with oracle error :
    Error in mru internal routine: ORA-20001: Error in MRU: row= 1,
    ORA-01400: cannot insert NULL into
    ("TS_APEX"."TS_ENTRY_TXN_DETAIL"."ENTRY_ID"), insert into
    "TS_APEX"."TS_ENTRY_TXN_DETAIL" ( "ENTRY_ID", "SUB_ENTRY_ID",
    "SMR_ID", "TASK_ID", "SUB_TASK_ID", "TIME_SPENT", "REMARKS") values (
    :b1, :b2, :b3, :b4, :b5, :b6, :b7)
    Is there any other way to build master detail wihout wizard.
    Could you please suggest us better way to complete this task.

    If I'm reading this correctly, then one of the columns in your detail tables' primary key is also the foreign key pointing to your master table? If that's the case, then that's not supported by the wizard. For the wizard generated master-detail form to work properly, you'll have to have a foreign key column in your detail table which is not part of your detail table's primary key.
    Hope this helps,
    Marc

  • How order by  use in master detail form

    hi master
    sir i have master detail form but show data with out order by
    my need is form show data in order on date
    please give me idea how order by use in master detail form
    thank
    aamir

    Set "Order by Clause" Property at block level
    Cheers
    Gouri Sankar

  • Oracle ADF 11g – Authentication using Custom ADF Login Form Problem

    Hi Guys,
    I am trying to Authenticate my adf application using custom Login Form.
    following this..
    http://www.fireboxtraining.com/blog/2012/02/09/oracle-adf-11g-authentication-using-custom-adf-login-form/#respond
    But my Login Page is not Loading.I think its sending request in chain.my jdev version is 11.1.1.5.Any Idea.
    Thanks,
    Raul

    Hi Frank,
    I deleted bounded code and In another Unit Test I created a simple login.jspx page and applied form based authentication but still facing same problem means something wrong in starting.
    My login.jspx page is
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
      <jsp:directive.page contentType="text/html;charset=UTF-8"/>
      <f:view>
        <af:document id="d1" >
          <af:form id="f1" >
            <af:panelFormLayout id="pfl1">       
              <af:inputText label="USERNAME" id="it1"
                            />       
              <af:inputText label="PASSWORD" id="it2"
                              />
              <af:commandButton text="LOG IN" id="cb1" />
              <f:facet name="footer">       
              </f:facet>                 
            </af:panelFormLayout>
          </af:form>
        </af:document>
      </f:view>
    </jsp:root>
    Don't know wht real problem is

  • Authorization Problem (I am Using Authorization For Custom Forms)

    Hi All,
    I am Using Authorizations To My Forms (I created One Addon For This Addon I am Using Authorization).I created Authorization For My Addon But While Working It Showing Some Errors
    . In My Addon Four Forms are there For  this four forms I am Using Authorization based on usres some screens only super  user can access. normal user he is not a super user he  cliekd on that authorization form it shows one message  Your not a authorized user to permitted this operation in this message box we have two butons one is ok button and one is Authorized by another user . When i clicked on Ok Button  I am getting error Internal error (-10) occured [131-183]. Please give me Your Valable Suggestion.
    I am waiting for  your Reply.
    Thanks & Regards
    Naresh

    I am using Sap Authorizations For My Custom Form  See The Code Also U Can Get Clear Idea
    Private Sub CustomAuthorization()
            Dim li_RetVal As Integer
            Dim pUserPer As SAPbobsCOM.UserPermissionTree
            Try
                pUserPer = Me.SBO_Company.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oUserPermissionTree)
                'Purchase Indent
                If pUserPer.GetByKey("NHCL_PM") = False Then
                    pUserPer.PermissionID = "NHCL_PM"
                    pUserPer.Name = "Purchase Module"
                    pUserPer.Options = SAPbobsCOM.BoUPTOptions.bou_FullNone
                    li_RetVal = pUserPer.Add()
                End If
                'Purchase Indent ->New Purchase Indent
                If pUserPer.GetByKey("NHCL_PM_NPI") = False Then
                    pUserPer.PermissionID = "NHCL_PM_NPI"
                    pUserPer.Name = "New Purchase Indent"
                    pUserPer.Options = SAPbobsCOM.BoUPTOptions.bou_FullNone
                    pUserPer.ParentID = "NHCL_PM"
                    pUserPer.UserPermissionForms.FormType = "2000010002"
                    li_RetVal = pUserPer.Add()
                End If
                'Purchase Indent->View For Approval
                If pUserPer.GetByKey("NHCL_PM_VIE") = False Then
                    pUserPer.PermissionID = "NHCL_PM_VIE"
                    pUserPer.Name = "View For Approval"
                    pUserPer.Options = SAPbobsCOM.BoUPTOptions.bou_FullNone
                    pUserPer.ParentID = "NHCL_PM"
                    pUserPer.UserPermissionForms.FormType = "2000010003"
                    li_RetVal = pUserPer.Add()
                End If
                'Purchase Indent ->Selection For RFQ
                If pUserPer.GetByKey("NHCL_PM_SEC") = False Then
                    pUserPer.PermissionID = "NHCL_PM_SEC"
                    pUserPer.Name = "Selection For RFQ"
                    pUserPer.Options = SAPbobsCOM.BoUPTOptions.bou_FullNone
                    pUserPer.ParentID = "NHCL_PM"
                    pUserPer.UserPermissionForms.FormType = "2000010006"
                    li_RetVal = pUserPer.Add()
                End If
                'Purchase Indent ->Purchase Quotation
                If pUserPer.GetByKey("NHCL_PM_PUR") = False Then
                    pUserPer.PermissionID = "NHCL_PM_PUR"
                    pUserPer.Name = "Purchase Quotation"
                    pUserPer.Options = SAPbobsCOM.BoUPTOptions.bou_FullNone
                    pUserPer.ParentID = "NHCL_PM"
                    pUserPer.UserPermissionForms.FormType = "2000010007"
                    li_RetVal = pUserPer.Add()
                End If
                'Purchase Indent ->Final Quotation
                If pUserPer.GetByKey("NHCL_PM_FIN") = False Then
                    pUserPer.PermissionID = "NHCL_PM_FIN"
                    pUserPer.Name = "Final Quotation"
                    pUserPer.Options = SAPbobsCOM.BoUPTOptions.bou_FullNone
                    pUserPer.ParentID = "NHCL_PM"
                    pUserPer.UserPermissionForms.FormType = "2000010008"
                    li_RetVal = pUserPer.Add()
                End If
            Catch ex As Exception
                Dim ErrCode As Long
                Dim ErrMsg As String
                Me.SBO_Company.GetLastError(ErrCode, ErrMsg)
                Me.SBO_Application.StatusBar.SetText("Authorization Problem" & ErrCode & li_RetVal, SAPbouiCOM.BoMessageTime.bmt_Short)
            End Try
        End Sub

  • Problem using namespace of XML docs gerenrated by  XMLForm

    Hi community!
    I am facing a problem using namespace within a XSL stylsheet. Let me describe my problem:
    I am using the SAP XMLFormsBuilder within the SAP EnterprisePortal in order to provide a HTML based form for creating and editing specific XML documents. The data in the generated documents is finally presented as HTML using XSL Transformation.
    In the XMLFormsBuilder you define the Schema of the XML document and the HTML GUI of the form. The Schema document looks like below (extract):
    <?xml version="1.0" encoding="utf-8"?>
    <schema targetNamespace="http://www.xmlspy.com/schemas/orgchart"
            xmlns="http://www.w3.org/2001/XMLSchema"
            xmlns:xyz="http://www.xmlspy.com/schemas/orgchart" Version="6.3.0">
      <element name="commodity"
               default=""
               minOccurs="1"
               maxOccurs="1"
               ns="p2p"
               xmlns:p2p="http://www.portal.p2p.com">
        <complexType>
          <sequence>
            <element name="administrative_information"
                     default=""
                     minOccurs="1"
                     maxOccurs="1"
                     ns="p2p">
              <complexType>
                <sequence>
                  <element name="creation_date"
                           default=""
                           minOccurs="1"
                           maxOccurs="1"
                           type="date"
                           ns="p2p"/>
    As far as I understand, each element defined in the Schama belongs to the namespace "p2p" and this is exactly what I want.
    The XML document generated by the form looks like below (extract):
    <?xml version="1.0" encoding="UTF-8"?>
    <?xml-stylesheet type="text/xsl" href="show_card.xsl"?>
    <commodity xmlns:xf="http://www.sapportals.com/wcm/app/xmlforms"
               xmlns:xsi="http//www.w3.org/2001/XMLSchema-instance"
               xsi:noNamespaceSchemaLocation="/etc/xmlforms/P2PCategoryCard_TEST/P2PCategoryCard_TEST-Schema.xml">
      <administrative_information>
        <creation_date>2005-07-04</creation_date>
    Consequently, the file "show_card.xsl" is the responsible XSLT stylesheet, which looks like this:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:p2p="http://www.portal.p2p.com">
      <xsl:output method="html"/>
      <xsl:template match="p2p:commodity">
        <html>
        <body>
          <h2>XSLT Test</h2>
          Creation Date: <xsl:value-of select="p2p:administrative_information/p2p:creation_date"/>
        </body>
        </html>
      </xsl:template>
    </xsl:stylesheet>
    The problem in the XSLT stylesheet is, that I want to access the XML document elements using their namespace. And this is exactly what does not work for me. On the other hand, if I remove the reference to the namespace:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                    xmlns:p2p="http://www.portal.p2p.com">
      <xsl:output method="html"/>
      <xsl:template match="commodity">
        <html>
        <body>
          <h2>XSLT Test</h2>
          Creation Date: <xsl:value-of select="administrative_information/creation_date"/>
        </body>
        </html>
      </xsl:template>
    </xsl:stylesheet>
    the stylesheet works fine, but for some technical reasons, which I don't want to explain here, I have to use the namespace when accessing the XML document elements.
    For technical reasons, I cannot change the format of the Schema document and also cannot change the format of the generated XML document. The only file I can change and control is the XSLT stylsheet.
    My question is now, in the case described above, if there is any way to use the namespace in the sytlesheet when accessing the XML elements?
    Any help is appreciated.
    Cheers,
    Adam Kreuschner

    duggal.ashish wrote:
    3. Some XML files contain a "iso-8859-1" character with character code 146 which appears like apostrophes but actually it is : - &#146; and the problem is that words like can&#146;t are shown as can?t by database.http://en.wikipedia.org/wiki/ISO8859-1
    Scroll down in that page and you'll see that the character code 146 -- which would be 92 in hexadecimal -- is in the "unused" area of ISO8859-1. I don't know where you got the idea that it represents some kind of apostrophe-like character but it doesn't.
    Edit: Actually, I do know where you got that idea. You got it from Windows-1252:
    http://en.wikipedia.org/wiki/Windows-1252
    Not the same charset at all.

  • Re-ordering tags using ORDER panel doesnt work in Acrobat X

    I am having major problems re-ordering tags (text and form field) using the Order Panel. When I select a tag from the Order Panel and try to drag it from position #20 up to position #5 it does not work.
    In fact, my tag completely disappears???
    I've been working on tryin to get my text tags and my form field texts in the proper order for over a week now with no luck at all. I am also have several problems with 2 text tags merging into 1.
    If anyone knows how I can get the reading order to display correctly in the Order Panel that would be great. My docs are failing the accessibility standards set by our office for the province and i need the forms to be compliant with gov acts/legs.

    CT Dave is correct.  The structure tree is used as the reading order by screen readers.  The structure tree is defined in the Tags Panel.  As long as "use document structure" is selected in the Page Thumbnails/PagesPanel /Page  Properties / Tab order tab " your document should read properly. 
    As to whether it meets the legal standards in your jurisdiction... well some cllient requirements used to  include the "Content Panel" match but --  the "Order Panel"?  , I can think of none  that does.
    Are you referring to the form field "Tab Order" or the Order Panel?  Working with Form Fields the Tab Order should match the Tags Panel reading order and this can be a bear to work out sometimes.
    I know working within the Content Panel can cause unexpected changes in the appearance of the page. There is definitely a trick to it. It seems the Order panel is likewise "buggy" (at least from a user's perspective). I have had Tags occasionally "disappear" in the Tags Panel if they are inadvertently moved "on top of" instead of under or over another Tag. So it doesn't surprise me that this would happen in other panels.  You have to position them "just so". 
    I am in the States and not familiar with Provincial code--could you forward a URL or cite? Client standards may have requirements regarding elements or situations that may but do not necessarily affect accessibility. Perhaps they are  trying to cover as many bases as possible or may lack a full understanding of document accessibility. Government standards are usually more general.  Are there other accessibility workers in your Province that you can refer to for guidance on this?
    If matching the order panel to the reading order is  the standard then you will need to examine how your documents are being made, and under what circumstances the Order Panel is or is not correct.  Start with a simple document and work up from there. If you are creating documents in Word with text boxes, figures (Not to Mention Form Fields) you will likely have problem as Word does not always manage to arrange lists or Figures in the correct order in Acrobat's Tags Panel.   I would  be interested in seeing the document you are having problems with or a similar one.  
    Good luck!

  • Problems saving responses in PDF forms

    Hi all -
    I have created a few forms for my organization, but I've been getting a lot of feedback about problems with one of the forms.  It's set up just like the other ones (that don't have problems) - 22 drop down menus, 6 text boxes.
    Often, when one person saved the form on their computer, they email it to submit, but the responses come through blank on my end... even though the saved version on the original computer has the responses saved.  For others, the form won't save responses at all.  Many times, people submitting this form have had to physically print and scan the form in order to submit it... which defeats the purpose of having the electronic form.
    Any ideas on what the problem might be?  Is there anything I could do to fix these problems with saving?  Is it a problem with the others' version of reader?  I don't have any idea how to approach this issue.

    Hi, sorry for my vague question, I'll clarify that -
    I created the forms in Acrobat 9 Pro.  Mostly, the other people using the form fill it out with Adobe Reader.  They all have different versions, basically.  Whenever I hear about these problems, I've always told the person to update their Adobe Reader to the latest version... that has never seemed to actually help.

Maybe you are looking for

  • Function Module to identify released transports

    Hi, We required one function module or table where we can find the released transports in target system. Suppose if we release one transport in developement, before importing to target system  i want to identify the released trasport details in test

  • Personal File sharing is on but not working

    This problem has been plaguing me for some months. When I try to access the problem computer on the network it will not show up until I turn off Personal File Sharing and then turn it back on. Then all works fine for several days until it doesn't wor

  • Help needed in swing!urgently!

    Hi im new to java envirnoment.Im working on a project,i need to design a tutorial page. How do i write a program for asking user to input values for a matrix form? how to i design the page for this? How do i invoke a Japplet?Is it the same procedure

  • X200's UltraBase

    Hi all, After I attached my X200 to the Dock, I turned the computer on. After that, it raised an error "Missing Operating System". Note, though, that the computer itself works well with the operating Vista. I'm just wondering that if I did wrong or t

  • Updating a database table

    If there are two tables in a database, for example Table ZACCDETAILT and ZACCDETAILS,where ZACCDETAILT has all the fields present in ZACCDETAILS with two extra fields ,I would like a transaction code to maintain all the fields of table ZACCDETAILT an