Generating web PL/SQL Form header (MODSHD) including modulename

Hi all,
I want to generate a WEB PL/SQL form using a template.
The call to the stored function goes fine. I call package.function which returns a string, that is displayed. So far so good...
However, I want to display the name of the Module (or some other variable from Designer).
Can I pass that in some way to the function?
Thanks,
Rob

Never mind, I got it. Thanks i also have that problem. please send me your code.
Thanks. email me at [email protected]

Similar Messages

  • Generating Web Service with SOAP Header

    Hello,
    I have a WSDL for a web Service using document encoding and with a soap header.
    I generate a jws file using WL Workshop 81.SP4 but I always have this error message :
    ERROR: AjoutContactService.jws:13: The binding for AjoutContact does not declare one part.
    ERROR:      SUGGESTION: A document literal binding must have at most one part. Make sure you have a WSDL that declares just one part for each message with a document literal binding.
    The header is a recent adding on an existing Web Service, and I can't change the wsdl definition. I also need to use data contained by the header in conjunction with data in the body.
    Is it a limitation with workshop or a problem with with my binding file ?
    I give sample of my two wsdl files.
    Given wsdl file
         <wsdl:message name="inputAjoutContact">
              <wsdl:part name="body" element="xsdin:NouveauContact"/>
    <wsdl:part name="header" element="xsdinhead:EnTeteRequete"/>          
         </wsdl:message>
         <wsdl:message name="outputAjoutContact">
              <wsdl:part name="body" element="xsdout:StatutAjoutContact"/>
         </wsdl:message>
         <wsdl:message name="faultAjoutContact">
              <wsdl:part name="body" element="xsdfault:Exception"/>
         </wsdl:message>
         <wsdl:portType name="AjoutContactPortType">
              <wsdl:operation name="AjoutContact">
                   <wsdl:input name="ParametresEntree" message="tns:inputAjoutContact"/>
                   <wsdl:output name="ParametresSortie" message="tns:outputAjoutContact"/>
                   <wsdl:fault name="ParametresException" message="tns:faultAjoutContact"/>
              </wsdl:operation>
         </wsdl:portType>
    binding file
              <wsdl:operation name="AjoutContact">
                   <soap:operation soapAction="urn:#AjoutContact"/>
                   <input>
    <soap:header part="header" use="literal"/>
    <soap:body parts="body" use="literal"/>
                   </input>
                   <output>
                        <soap:body use="literal"/>
                   </output>
    <fault name="ParametresException">
    <soap:fault use="literal" name="ParametresException" />
    </fault>
         </wsdl:operation>

    Hi,
    This appears to be a known limitation and is addressed by CR227689
    which has a workaround that needs the wsdl to be modified.
    I am not sure if this is possible given that we don't control the wsdl most times.
    Could you please open a BEA support case and refer to CR227689?
    Vimala-
    p.s:
    I found some info on the issue which could help:
    1) Refer to <http://lists.oasis-open.org/archives/regrep/200306/msg00071.html>
    you will see that only one part is allowed in the message part for doc/literal webservices Snippet from the above link
    "Also, keep in mind that WS-I BP permits only one <part> on document/literal messages, so to be WS-I compliant, you would have to include it in the message structure. "
    2) Refer to http://www.ws-i.org/Profiles/Basic/2003-08/BasicProfile-1.0a.html#refinement35722968 <http://www.ws-i.org/Profiles/Basic/2003-08/BasicProfile-1.0a.html>
    below R2208)
    "For document-literal bindings, the Profile requires that at most one part, abstractly defined with the element attribute, be serialized into the soap:Body element."
    This implies Soap body contains message which contains a at most one part.

  • Generating/running Web PL/SQL app from tutorial

    My station is configured/installed as follows:
    windows 2000 server
    IIS 5
    IE 5
    Oracle Designer 6i
    Oracle repository
    Oracle 8.0.5 in one oracle home
    Oracle 8.1.7 in another oracle home
    (both server environments are working correctly)
    My problem is:
    I am able to perform all the tasks of the tutorial up to the point when you run the generated Web PL/SQL app. I believe the repository and server is setup correctly because the rest of the tutorial works. I also ran the "install web PL/SQL generator" option in the schema where the app was to be installed to without any errors.
    When I generate the application it happens without any errors reported, but when I click the "list actions" button there is no item called "Run generated application using browser" option.
    I have 4 questions:
    1. How would I access the application via an URL? ie, http://myserver/some_web_location/webapp
    2. Can I use the generated web app portion on an IIS server?
    3. Where else can I look for information on this problem on the Web PL/SQL side?
    4. Anything else I may have missed?
    null

    Also, if you're using any PLSQL object or collection types you'll need to think
    about JPublisher and SQLJ to generate the java equivalents. I've had to do this
    when integrating with the Oracle apps.
    Steve...
    "Mark Griffith" <[email protected]> wrote:
    >
    "tjpultz" <[email protected]> wrote in message
    news:[email protected]..
    Does anybody know how to do this or if it can even be done. I workin
    an area that has been developing Oracle PL/SQL web apps running with
    the Oracle App Server V. 4.0.8. We wanted to update our database
    and appserver to 9i but the IT standards group decided that
    the only company approved appserver would be BAE WebLogic. Is it
    possible to call Oracle stored procedures thru Weblogic instead of
    using Oracles application server with the PL/SQL cartridge to handle
    all PL/SQL web requests? Any help or information would be greatly
    appreciated.Looks like you can get to PL/SQL reuests
    http://technet.oracle.com/sample_code/tech/java/sqlj_jdbc/files/basic/plsqlS
    ample/PLSQLSample.java.html
    Obviuosly you don't get your JDBC connection from Oracles Data source.
    1) Create a Connection Pool with Oracles thin driver
    2) get a connection from this pool
    3) execute PL/SQL
    Your gonna have to do some "porting" obviously.
    mbg

  • Charting within Web-PL/SQL Application - advice required please

    Currently trying to enhance our Designer generated Web-PL/SQL application by including charting.
    There is no provision to do this within Designer so are exploring other solutions, specifically using a server side servlet to render a chart as a gif, returning this to the client HTML page.
    Has anyone got any recommendations on what to use to do this?
    We've tried with limited success calling the Portal servlet (called chart) due to lack of documentation and relience on certain Portal procedures. We're currently experimenting with Oracle Chartbuilder, which looks promising, but would really like to know what the recommended or favorite solution is!
    Any feedback appreciated!
    Anthony

    user645399 wrote:
    Right now, I am displaying a table in the web by selecting all the records from a particular table.
    This is how I do it.Not a great way to display a report. This is not re-usable code. Difficult to maintain. Difficult to add or change the presentation of data.
    The proper way to do it, will be to use a DBMS_SQL cursor. After the cursor is opened, you use the describe function on the cursor that returns the number of columns in the cursor, the names of the columns, and their data types.
    This data is then used to fetch a column value from the cursor, and render it (as per its data type). This can easily be extended to make use of reporting templates and defaults and even style sheets to make rendering easy and flexible.
    DBMS_SQL is detailed in the [Oracle® Database PL/SQL Packages and Types Reference|http://download.oracle.com/docs/cd/B19306_01/appdev.102/b14258/d_sql.htm#BABEDAHF] guide.
    Should I include a search engine? or how should I go about it? Is there a way to break the table into smaller parts using the dealer id?Why not use APEX? The above method that I've described is what is employed by APEX. So instead of writing that yourself, having to deal with dynamic variable binding, pagination, web state and security and so on.. APEX does all of this, and more, for you.

  • Master-detail module in Web PL/SQL

    Hi, I'm a beginner and I'd like to ask how many tables can I use in order to create a master-detail module. The example I have is only 2 tables which is master table and detail table respectively.
    What should I do if I want to include more than 2 tables in a master-detail module?
    For my case, the module i created is to create customer orders where order, order details, customer, employee and product tables are necessary .
    Thanks.

    This probably belongs over in the Products->DeveloperSuite->Designer forum. But I can start an answer here.
    On any single designer-generated web pl/sql page, you can typically only show two levels: a master and 0->many details. You can also only edit one table per page.
    You'll typically be setting up several module components using "key-based links" between them. It's not that hard, but you'll want to experiment a bit or use some resources. For example, there are a number of useful papers over on the odtug site, www.odtug.com
    -- jim

  • Insert Form template filename web PL/SQL Applications

    Helpme please
    How i can change the default form insert in web PL/SQL
    Designer 6i
    Thank!!!
    e-mail [email protected]

    I am having issue loading data using Web ADI, I am getting "SQL exception occurred during PL/SQL upload" error, I tried to restart Apache, also looked into the BNE.log file for the exact error but I am still not sure about this exception, can anyone please help?Please rename the log file, reproduce the issue and check the log file then.
    bne:text="SQL exception occurred during PL/SQL upload."
    bne:cause="Database insert error"Please see these docs.
    R12 Uploading Intercompany Transactions Shows SQL Exception Occurred During PL/SQL Upload [ID 1234063.1]
    Batch Element Entry (BEE) Spreadsheet Interface > 10 Rows Fails with Error: 'SQL exception occured during PL/SQL Upload.' [ID 388012.1]
    How Do You Setup An AGIS Transaction That Has Several Transaction Lines For The Same Transaction [ID 946499.1]
    FCH: Error: "The upload process has completed with errors. Please Close to return to the document and fix the errors. - No rows uploaded - <999> rows were invalid" During WebADI Data Upload [ID 553025.1]
    R12: Legal Entity Name must be < 31 characters. [ID 472505.1]
    Oracle Payroll 'Batch Element Entry ( BEE )' Frequently Asked Questions ( FAQ ) [ID 1353021.1]
    Thanks,
    Hussein

  • Problem when generating an non-interactive form in Web Dynpro java.

    Hi,
    I'm trying to create a PDFDocument using a creation context in java. Everything works fine when the Interactive property of the creation context is set to true. When I change it to false however, the Web dynpro application hangs and eventually throws the following exception:
    java.net.SocketTimeoutException: Read timed out
       at java.net.SocketInputStream.socketRead0(Native Method)
       at java.net.SocketInputStream.read(SocketInputStream.java:129)
       at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
       at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
       at com.sap.engine.services.webservices.jaxm.soap.HTTPSocket.readLine(HTTPSocket.java:806)
    I'm wondering why this exception occurs when i'm generating a non interactive form and never appears when i'm generating a form with the Interactive property set to true.
    Any ideas?
    Edited by: Arjan Nieuwenhuizen on Feb 25, 2008 3:24 PM

    Yeah I know changing the form properties will solve my problem, but since i'm developing a training for Interactive Forms in Web Dynpro Java, I wanted to figure out why the (static / non-interactive) combination didn't work, turned out to be a template problem, which i still didn't figure out, except the fact that having flowed content on your template is not the problem.
    My ideas about your question:
    When we have the layout of an Interactive Form, its clear if it's meant to be static or dynamic, we don't know however, if it's interactive or non-interactive.
    I don't think we can judge a layout to have an Interactive or non-interactive purpose, can depend on the situation in which the same form is shown/used:
    - One moment it can be interactive, e.g. user is filling in the form, can enter data etc.
    - Next moment it can be non-interactive, e.g. form is shown to another user.
    So it's more the scenario/situation that determines if the form is interactive or non-interactive.

  • How can I install WEB PL/SQL Generator?

    When I running "Install Web PL-SQL Generator",I got the following errors:
    Someone help me, please!
    No errors.
    No errors.
    Package wsglm...
    Input truncated to 11 characters
    No errors.
    Package wsgjsl...
    No errors.
    Package wsgfl...
    No errors.
    Package wsgl...
    Warning: Package created with compilation errors.
    Errors for PACKAGE WSGL:
    LINE/COL ERROR
    62/22 PLS-00201: identifier 'OWA.VC_ARR' must be declared
    62/22 PL/SQL: Declaration ignored
    63/22 PLS-00201: identifier 'OWA_TEXT.VC_ARR' must be declared
    63/22 PL/SQL: Declaration ignored
    Package body wsgjsl...
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WSGJSL:
    LINE/COL ERROR
    280/7 PL/SQL: Statement ignored
    311/53 PLS-00905: object OWNER.WSGL is invalid
    334/7 PL/SQL: Statement ignored
    344/17 PLS-00905: object OWNER.WSGL is invalid
    472/7 PL/SQL: Statement ignored
    493/31 PLS-00905: object OWNER.WSGL is invalid
    813/10 PL/SQL: Statement ignored
    813/22 PLS-00905: object OWNER.WSGL is invalid
    828/10 PL/SQL: Statement ignored
    828/22 PLS-00905: object OWNER.WSGL is invalid
    843/10 PL/SQL: Statement ignored
    843/22 PLS-00905: object OWNER.WSGL is invalid
    852/10 PL/SQL: Statement ignored
    852/22 PLS-00905: object OWNER.WSGL is invalid
    861/10 PL/SQL: Statement ignored
    861/22 PLS-00905: object OWNER.WSGL is invalid
    884/10 PL/SQL: Statement ignored
    884/22 PLS-00905: object OWNER.WSGL is invalid
    960/3 PL/SQL: Statement ignored
    960/15 PLS-00201: identifier 'HTF.ESCAPE_SC' must be declared
    Package body wsgl...
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WSGL:
    LINE/COL ERROR
    0/0 PL/SQL: Compilation unit analysis terminated
    1/14 PLS-00905: object OWNER.WSGL is invalid
    1/14 PLS-00304: cannot compile body of 'WSGL' without its
    specification
    Package body wsgfl...
    No errors.
    No errors.
    No errors.
    No errors.
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WSGMC_OUTPUT1:
    LINE/COL ERROR
    49/4 PLS-00201: identifier 'HTP.P' must be declared
    49/4 PL/SQL: Statement ignored
    51/7 PLS-00201: identifier 'HTP.P' must be declared
    51/7 PL/SQL: Statement ignored
    53/10 PLS-00201: identifier 'HTP.P' must be declared
    53/10 PL/SQL: Statement ignored
    60/4 PLS-00201: identifier 'HTP.P' must be declared
    60/4 PL/SQL: Statement ignored
    Warning: Package Body created with compilation errors.
    Errors for PACKAGE BODY WSGMC_OUTPUT2:
    LINE/COL ERROR
    36/13 PLS-00201: identifier 'HTP.P' must be declared
    36/13 PL/SQL: Statement ignored
    42/10 PLS-00201: identifier 'HTP.P' must be declared
    42/10 PL/SQL: Statement ignored
    48/13 PLS-00201: identifier 'HTP.P' must be declared
    48/13 PL/SQL: Statement ignored
    53/16 PLS-00201: identifier 'HTP.P' must be declared
    53/16 PL/SQL: Statement ignored
    59/13 PLS-00201: identifier 'HTP.P' must be declared
    59/13 PL/SQL: Statement ignored
    64/10 PLS-00201: identifier 'HTP.P' must be declared
    64/10 PL/SQL: Statement ignored
    70/13 PLS-00201: identifier 'HTP.P' must be declared
    70/13 PL/SQL: Statement ignored
    87/28 PLS-00201: identifier 'HTP.BR' must be declared
    87/28 PL/SQL: Statement ignored
    92/25 PLS-00201: identifier 'HTP.P' must be declared
    92/25 PL/SQL: Statement ignored
    99/13 PLS-00201: identifier 'HTP.P' must be declared
    99/13 PL/SQL: Statement ignored
    The following synonyms already exist. Please check that they are valid:
    OWA
    OWA_UTIL
    OWA_COOKIE
    OWA_IMAGE
    OWA_INIT
    OWA_OPT_LOCK
    OWA_PATTERN
    OWA_SEC
    OWA_TEXT
    HTP
    HTF
    CG$ERRORS
    WSGL
    WSGJSL
    WSGLM
    WSGFL
    Webserver Generator Compilation Report
    NAME TY LINE COL TEXT
    WSGJSL PB 311 53 PLS-00905: object OWNER.WSGL is invalid
    280 7 PL/SQL: Statement ignored
    344 17 PLS-00905: object OWNER.WSGL is invalid
    334 7 PL/SQL: Statement ignored
    493 31 PLS-00905: object OWNER.WSGL is invalid
    472 7 PL/SQL: Statement ignored
    813 22 PLS-00905: object OWNER.WSGL is invalid
    813 10 PL/SQL: Statement ignored
    828 22 PLS-00905: object OWNER.WSGL is invalid
    828 10 PL/SQL: Statement ignored
    843 22 PLS-00905: object OWNER.WSGL is invalid
    843 10 PL/SQL: Statement ignored
    852 22 PLS-00905: object OWNER.WSGL is invalid
    852 10 PL/SQL: Statement ignored
    861 22 PLS-00905: object OWNER.WSGL is invalid
    861 10 PL/SQL: Statement ignored
    884 22 PLS-00905: object OWNER.WSGL is invalid
    884 10 PL/SQL: Statement ignored
    960 15 PLS-00201: identifier 'HTF.ESCAPE_SC' must be
    declared
    NAME TY LINE COL TEXT
    WSGJSL PB 960 3 PL/SQL: Statement ignored
    WSGL PA 62 22 PLS-00201: identifier 'OWA.VC_ARR' must be
    CK declared
    AG
    E
    62 22 PL/SQL: Declaration ignored
    63 22 PLS-00201: identifier 'OWA_TEXT.VC_ARR' must be
    declared
    63 22 PL/SQL: Declaration ignored
    PB 1 14 PLS-00905: object OWNER.WSGL is invalid
    1 14 PLS-00304: cannot compile body of 'WSGL' without
    its specification
    0 0 PL/SQL: Compilation unit analysis terminated
    null

    Hi,
    Is necesary install XDB?
    Because i have executed;
    select * from dba_registry
    where COMP_ID = 'XDB'
    Oracle XML Database
    Regards

  • Generate web services form WSDL as part of build process

    Hi, I am using Jdev drop7build2.
    I have wsdl and schema types. From Jdeveloper we can generate webservices using "web services from WSDL". But I want to generate web services as part of my build process.
    Is it possible to do this as part of build process ? any ant tasks or API etc ?
    Thanks
    -Siva

    Arrrgggg
    Drop 7 is an Oracle-internal build, as far as I know.
    You should be asking on an internal Oracle list.
    John

  • Web app: How can I make a web app input form post directly to a sub category

    Please, how can I go about this? Some of the ideas coming to my head is to  replace the section I require with the  generated webapp input form code with this:
    <input type="radio" name="CAT_Category" value="{module_category, ID} onclick="javascript: return false;" >2013 /> // Not tested because am not sure of the markup
    Am I on point ? Or is there any other way I can get this done.

    I Trickster, pardon me if am not clear enough. But this is it. I have many BC Categories setup for different web apps. If you use the module {module_categorylist} only. BC will populate all the categories on the BC site, instead of a specific category  relevant to the web app. If it is {module_categorylist, categoryID}, you are telling BC to use the the categories in a specific category.
    When you say that you want to assign a web app item to a sub-category... do you mean the built in BC categories . I want to do this via the web app input form not through the admin.
    Do you have a top-level category that contains all the relevant sub categories that the user could use to classify/categorize the web app item upon submission?  Yea I have a top category that the user could use. It is this top-level category ID, I have used with the categorylist module.
    If you don't want the user to choose the sub-category themselves, how do you plan to derive the sub-category anyway? Thanks again Trickster. You have provided the solution to that with the hidden input field code you shared earlier. The sub-category has been pre setup as usual in BC and the sub-category ID would be used as you instructed in the code. This is intended for another web app that won't require users selecting a category. This is the example you shared:
    <input type="hidden" name="CAT_Category" value="my category ID"/>
    Using my example above I was able to test and have it working (using {module_categorylist} with the SELECT element) on a web app input form and when I submitted the new web app item it was classified in the category I chose. Yes Trickster, it works for me too that way. the web app item was classified perfectly, but if you go to your the web app item submitted at the admin-end, you will discover in that the category the user selected in the front-end is not selected, even though the item was classified
    I have highlighted it here: http://screencast.com/t/dwiXzBFXp
    The option selected  by the user is not captured. It often defaults to the 2012, even when the user selected 2013 and the item has been classified as 2013.
    I hope am more clearer. Thanks for all the effort.

  • Have problem when generate Web Service from bapi function

    Dear all,
    Please kindly help me about generating Web Service from BAPI function, It does not success only this attached function.
    I have done so many function without any problems.
    I found 1 case that I use specific variable to be an import/ export then, it can't create as well.
    As for this one, I try so many changes but I can't success it as well.
    This is my function on R/3 4.6C, Dot net connector 2.0, Dot net Frame Work 1.1.
    FUNCTION Z_BAPI_ATTACHMENT_CREATE.
    ""Local interface: Type: Remote-enabled module
    *"  IMPORTING
    *"     VALUE(P_BOTYPE) LIKE  BORIDENT-OBJTYPE
    *"     VALUE(P_BO_ID) LIKE  BORIDENT-OBJKEY
    *"     VALUE(P_MSGTYP) LIKE  SOFM-DOCTP
    *"     VALUE(P_DOCTY) LIKE  BORIDENT-OBJTYPE
    *"     VALUE(P_RELTYP) LIKE  BRELTYP-RELTYPE
    *"     VALUE(P_FNAME) LIKE  RLGRAP-FILENAME
    *"     VALUE(P_OBJDES) TYPE  SO_OBJ_DES
    *"  EXPORTING
    *"     VALUE(RETURNMESSAGE) TYPE  CHAR50
    INCLUDE : <cntn01>.
    P_BOTYPE  TYPE  BORIDENT-OBJTYPE DEFAULT 'BUS2105'
    P_BO_ID   TYPE  BORIDENT-OBJKEY
    P_MSGTYPE TYPE  SOFM-DOCTP DEFAULT 'URL'
    P_DOCTY   TYPE  BORIDENT-OBJTYPE DEFAULT 'MESSAGE'
    P_RELTYP  TYPE  BRELTYP-RELTYPE DEFAULT 'ATTA'
    P_FNAME   TYPE  RLGRAP-FILENAME
    P_OBJDES  TYPE  SO_OBJ_DES
    TYPES: BEGIN OF ty_message_key,
    foltp TYPE so_fol_tp,
    folyr TYPE so_fol_yr,
    folno TYPE so_fol_no,
    doctp TYPE so_doc_tp,
    docyr TYPE so_doc_yr,
    docno TYPE so_doc_no,
    fortp TYPE so_for_tp,
    foryr TYPE so_for_yr,
    forno TYPE so_for_no,
    END OF ty_message_key.
    DATA : lv_message_key TYPE ty_message_key.
    DATA : lo_message TYPE swc_object.
    DATA : lt_doc_content TYPE STANDARD TABLE OF soli-line
    WITH HEADER LINE.
    First derive the Attachment's ( MESSAGE )document type.
    p_docty = 'MESSAGE'.
    CASE p_reltyp.
    In case of URls
      WHEN 'URL'.
        p_msgtyp = 'URL'.
    In case of Notes / Private Notes
      WHEN 'NOTE' OR 'PNOT'.
        p_msgtyp = 'RAW'.
      WHEN 'ATTA'.
    Take given parameter e.g. 'DOC', 'PDF' etc.
    P_MSGTYP = 'EXT'.
      WHEN OTHERS.
    ....exit
        EXIT.
    ENDCASE.
    Create an initial instance of BO 'MESSAGE' - to call the
    instance-independent method 'Create'.
    swc_create_object lo_message 'MESSAGE' lv_message_key.
    define container to pass the parameter values to the method call
    in next step.
    swc_container lt_message_container.
    Populate container with parameters for method
    swc_set_element lt_message_container 'DOCUMENTTITLE' p_objdes.
    swc_set_element lt_message_container 'DOCUMENTLANGU' 'E'.
    swc_set_element lt_message_container 'NO_DIALOG' 'X'.
    swc_set_element lt_message_container 'DOCUMENTNAME' p_docty.
    swc_set_element lt_message_container 'DOCUMENTTYPE' p_msgtyp.
    In case of URLs..it should be concatenated with &KEY& in the begining.
    CASE p_msgtyp.
      WHEN 'URL'.
      lt_doc_content = '&KEY&http://www.rmtiwari.com' .
        CONCATENATE '&KEY&' p_fname INTO lt_doc_content.
        APPEND lt_doc_content.
    In case of Notes or Private Notes, get the data from files on appl
    server or from wherever(? - remember background).
      WHEN 'RAW'.
        lt_doc_content = p_fname.
        APPEND lt_doc_content.
    In case of PC File attachments
      WHEN OTHERS.
        OPEN DATASET p_fname FOR INPUT IN BINARY MODE.
        IF sy-subrc EQ 0.
          DO.
            READ DATASET p_fname INTO lt_doc_content.           "2 of 27
            IF sy-subrc EQ 0.
              APPEND lt_doc_content.
            ELSE.
              EXIT.
            ENDIF.
          ENDDO.
          CLOSE DATASET p_fname.
        ENDIF.
    ENDCASE.
    'DocumentContent' is a multi-line element ( itab ).
    swc_set_table lt_message_container 'DocumentContent' lt_doc_content.
    Size is required in case of File attachments
    DATA : lv_doc_size TYPE i.
    DATA : l_file_lines TYPE i.
    DESCRIBE TABLE lt_doc_content LINES l_file_lines.
    READ TABLE lt_doc_content INDEX l_file_lines.
    lv_doc_size = ( 255 * ( l_file_lines - 1 ) ) +
    STRLEN( lt_doc_content ).
    swc_set_element lt_message_container 'DOCUMENTSIZE' lv_doc_size .
    Refresh to get the reference of create 'MESSAGE' object for attachment
    swc_refresh_object lo_message.
    swc_call_method lo_message 'CREATE' lt_message_container.
    Get Key of new object
    swc_get_object_key lo_message lv_message_key.
    Now we have attachment as a business object instance. We can now
    attach it to our main business object instance.
    Create main BO object_a
    data: LO_IS_OBJECT_A type SIBFLPORB. "type SIBFLPORB is unknown, so I
    DATA: lo_is_object_a TYPE borident.
    lo_is_object_a-objkey = p_bo_id.
    lo_is_object_a-objtype = p_botype.
    LO_IS_OBJECT_A-CATID = 'BO'.
    Create attachment BO object_b
    data: LO_IS_OBJECT_B type SIBFLPORB. "type SIBFLPORB is unknown
    DATA: lo_is_object_b TYPE borident.
    lo_is_object_b-objkey = lv_message_key.
    lo_is_object_b-objtype = p_docty.
    LO_IS_OBJECT_B-CATID = 'BO'.
    *TRY.
    *CALL METHOD CL_BINARY_RELATION=&gtCREATE_LINK
    EXPORTING
    IS_OBJECT_A = LO_IS_OBJECT_A
    IS_OBJECT_B = LO_IS_OBJECT_B
    IP_RELTYPE = P_RELTYP.
    CALL FUNCTION 'BINARY_RELATION_CREATE'
      EXPORTING
        obj_rolea    = lo_is_object_a
        obj_roleb    = lo_is_object_b
        relationtype = p_reltyp
      EXCEPTIONS
        OTHERS       = 1.
    Check if everything OK...who cares!!
    COMMIT WORK.
    if sy-subrc = 0.
      RETURNMESSAGE = 'S-Success'.
    else.
      RETURNMESSAGE = 'E-Error'.
    endif.
    ENDFUNCTION.
    Thanks in advance,
    Benjawan
    Edited by: Nitipat Chadchavalpanichaya on Oct 20, 2008 9:02 AM

    There is no any error message show up. It just the class
    Z_BAPI_ATTACHMENT_CREATE  doesn't create autometically as normal. I showed you as below.
    That means I can't call class z_bapi_attachment_create.
    ' <autogenerated>
    '     This code was generated by a SAP. NET Connector Proxy Generator Version 2.0
    '     Created at 21/10/2551
    '     Created from Windows
    '     Changes to this file may cause incorrect behavior and will be lost if
    '     the code is regenerated.
    ' </autogenerated>
    Imports System
    Imports System.Text
    Imports System.Collections
    Imports System.ComponentModel
    Imports System.Runtime.InteropServices
    Imports System.Xml.Serialization
    Imports System.Web.Services
    Imports System.Web.Services.Description
    Imports System.Web.Services.Protocols
    Imports SAP.Connector
      '@ <summary>
      '@ Client SAP proxy class
      '@ </summary>
      <WebServiceBinding(Name:="dummy.Binding", Namespace:="urn:sap-com:document:sap:rfc:functions")> _
      Public Class PRAttachment
        Inherits SAPClient
        '@ <summary>
        '@ Initializes a new PRAttachment.
        '@ </summary>
        Public Sub New()
        End Sub
        '@ <summary>
        '@ Initializes a new PRAttachment with a new connection based on the specified connection string.
        '@ </summary>
        '@ <param name="connectionString">A connection string (e.g. RFC or URL) specifying the system where the proxy should connect to.</param>
        Public Sub New(ByVal ConnectionString As String)
          MyBase.New(ConnectionString)
        End Sub
        '@ <summary>
        '@ Initializes a new PRAttachment and adds it to the given container.
        '@ This allows automated connection mananged by VS component designer:
        '@ If container is disposed, it will also dispose this SAPClient instance,
        '@ which will dispose a contained connection if needed.
        '@ </summary>
        '@ <param name="Cont">The container where the new SAPClient instance is to be added.</param>
        Public Sub New(ByVal Cont As Container)
          MyBase.New(Cont)
        End Sub
      End Class

  • Collapsed Tabular Form Heading when "No data found".

    The ' Collapsed Tabular Form Heading when "No data found" ' problem (speculated to be bug 9893564) is discussed here: {message:id=4419231}. Warning link is out of date. I'm still seeing it in APEX 4.2.
    I support Kelly's comments "looks like something is broken" and "Now this header (which is sized smaller before data is retrieved) comes between the search items and the help message and looks clumsy.".{message:id=9185914}.
    Any suggestion to get around it when no data is found?
    1) Is there a way to hide the header when there is no data? Or,
    2) Is there a way to adjust the width of the columns if the header must display? I'd like them to be about what they are when data is displayed. I know those lengths but not how to affect the header width for a tabular report with no data.
    Example:
    WS APEX_EXAMPLES_01
    demo
    demo
    Appl 78329 Tabular Form - page 1. (I forced query not to find any data for demo purposes.)
    Thanks,
    Howard

    Howard (... in Training) wrote:
    Paul --
    Great! So many new techniques here -- new to me. Generally, I much prefer positive logic as well. But this solution seems to have more pieces than the other.There is method in that.
    Firstly, with Aljaz's approach you can see a flicker as the tabular form is actually rendered and then hidden when the script in the footer is eventually run. This will be more apparent with a longer or more complicated page where it takes longer to reach the script and more content needs to be adjusted following removal of the form. Reversing the logic and hiding the form using CSS in the page header prevents this as the form elements are initially created as hidden nodes in the DOM before any of the page is rendered.
    More important is that this approach applies the principles of the separation of concerns and unobtrusive JavaScript. At some point when developing in APEX you're going to find yourself seriously losing your cool in a situation where you know the app is executing some JavaScript, but you can't find where that script is defined (maybe you've already been there). Look at the page 2 definition using the tree view: where's the JavaScript that is going to run? Now look at page 1: ah, there are a couple of dynamic actions...
    APEX now includes a lot of containers specifically for JavaScript: File URLs, Function and Global Variable Declaration and Execute when Page Loads in page templates and page headers, and declarative and custom Execute JS Code Dynamic Actions. These provide for good separation of concerns: we should use these locations for JS code, and avoid the exasperation of hunting through templates, page/region headers/footers, page 0 regions, pre-/post-element text or wherever to find the script we can see in the page source or JS debugger.
    Aljaz's solution also depends on detecting the presence of the No Data Found message with class <tt>nodatafound</tt>, and on modifying the Add Row button.
    What if someone changes the class of the No Data Found message in the report attributes? The Exists... condition on the dynamic action performs this check in a more direct way (although it's not ideal: DRY is violated by having both 2 copies and 2 executions of the report SQL; nor is it reusable on other form regions).
    Modifying the Add Row button JavaScript directly is intrusive. Like footers and templates, it's another non-obvious location for JS customisation. By using a dynamic action to bind another click handler to the button we're making the modification more obvious, and more importantly we don't have to modify what it's already doing&mdash;or in this instance, even care what that is (in other circumstances we might need to change the order or propagation of events, or suppress the original behaviour).
    As for reusability, my original solution didn't really consider this (as it wasn't mentioned in the OP). Since the subject has been raised, and in accordance with my comments above, I'd approach it in a different way.
    As discussed, I suggest not squirrelling JavaScript away in region templates. I'd create a reusable report template for tabular forms rather than a region one. A <tt>class</tt> defined on the report container there will provide a more direct selector for hide/show behaviour. I'd stick to initially hiding this report via CSS, and use dynamic actions defined on the global page to conditionally show it on page load and bind show behaviour to the Add Row button click. To make these DAs reusable I'd remove the Exists... condition from the first one and replace it with a JS condition that checks to see if the tabular form report contains any visible data rows (the class on the report template will help there as well). Binding the show behaviour to the Add Row button would use the <tt>onclick</tt> attribute as a selector (rather than an ID selector that requires an intrusive edit of the button) so that all Add Row buttons would be affected: <tt>$('button[onclick^="apex.widget.tabular.addRow"]')</tt>.
    And about the style code:
    #report_tabular-form,
    #report_tabular-form .report-standard {
    min-width: 90%;
    } That is an improvement. I had read about it but not considered it for this. I tried the technique used to adjust column width on other reports but when I use "div," it makes the data in that column display only. I really want to adjust the width of the individual column header. Is there a way to do that?I'm not really clear what you're asking here. (Use "div"? Where? How?)
    To control the width of individual report column headers, use the following CSS:
    th#COLUMN_ALIAS {
      width: 10em;
    }Where <tt>COLUMN_ALIAS</tt> is the alias of the column in the query: APEX uses this as the HTML <tt>id</tt> attribute for the column table header element. (Note that <tt>id</tt> attributes must be unique within a document, so it the same column appears in multiple reports/forms, ensure each column alias is unique.)

  • Web User Input Form - in terms for DQ & DI

    Hi All,
    Thanks a lot for your excellent contribution on these topics.
    I have one question
    Is there a web user input form available for Business SMEs or User to input their rules/metadata which will get converted to equivalent code snippets into DI or DQ components automatically.
    If so, apart from Data Services Management console and Metadata reporting console, what are the other web services available to cater to this, kindly give us more insight on to this please.
    Regards
    Chandra

    Look at the top of this forum. There is a header that describes what this forum is for:
    This forum is dedicated to all other development-related questions which are not directly addressed by other forums. This includes Business Objects SDKs, products, or technologies which do not fall under BusinessObjects Enterprise, BusinessObjects Edge, Crystal Reports Server, or Crystal Reports (for example Desktop Intelligence SDK, Universe Designer SDK, Portal Integration Kits, Java User Function Libraries, and other third party technologies or development languages).
    Does any of the above relate to your query? If not, you're in the wrong forum and you'll have to find a corect forum to post to.
    - Ludek

  • HTML Parameter Form Header

    Hi,
    I have change my parameter form header in the Before Report Value to add a image by adding the image tag in the parameter form HTML tag. For the source of the image tag, I just put the image file name.
    But now, when I try to run the report through web browser the image cannot be displayed. why thi will happen?
    Where should I put the image in the webserver?
    Thanks in advance.
    Regards,
    Cheong

    Please see answers posted in this url,
    Generate a pdf page from OAF using XML publisher.
    -Jeff

  • Web Pl/Sql

    Can anybody tell me How can we develop web page using PL/Sql Web tool kit..
    If anyone have the document on this .. plz send me ..
    Thanks..
    Lalit

    > as u said that for developing the web pl/Sql there is need for HTML..
    if u have then send me HTML document related developing Web Pl/Sql
    PL/SQL and HTML have very little to do with one another. HTML is HTML - and you will generate the same HTML for a form for example, whether you use Perl, PHP, Java, PL/SQL or any other language.
    If you do not know HTML, then you will need to learn it.
    Oracle provides PL/SQL packages that can write HTML for you - so instead of manually writing a HTML FORM tag, you can call a PL/SQL proc to write it.
    However, that still requires you to know what a FORM tag is, what an ACTION is, what INPUT types there are in a FORM, etc. etc.
    The definitive HTML specification is at [url http://www.w3.org/TR/html4/]W3.Org.
    But as I've said in that other post, and as already suggested in this thread, consider using Oracle Application Express (APEX). This requires very little PL/SQL and very little HTML knowledge to put something like an input table or a report together.
    If you do not know HTML and do not understand the complexities of a stateless web architecture, it is far better using a tool like APEX that deals with that complexities for you - heck, even "web developer experts" prefer using tools like APEX instead of writing the underlaying code themselves.

Maybe you are looking for

  • OBIEE 11g - APEX Integration through Action links

    Hi All, We are trying to achieve SSO between OBI and APEX. We got this working by the below process. 1. Integrate OBI domain with AD 2. Integrate APEX with the same AD ( Perform standalone configuration) 3. Create Action Link in OBI pointing to APEX

  • I need the quicktime plugin, but everytime I want to install it, the whole quicktime player is downloaded without the plugin.

    quicktime plugin from aplle can only be installed with the whole quick time player. I download it but nothing happenes, videos still cannot be streamed in firefox. I tried to install the plugin manually out of the quicktime file, but it seemes as tho

  • AP express PPPoE problem

    Hi, I have problems connecting my APe to the internet with PPPoE. Normaly my APe is configured as a wireless client of my existing network only used for airtunes. Now I want to use the APe at another place as DSL-router. So I´ve setup a new profile u

  • Adding songs to the shuttle

    Hi, Can't figure out the inconsistent behaviour of the iTunes s/w and whatever the interactions of the XP automatic features such as recognizing the iPod as an external disk. Is there a specific way to set an option on the PC/XP NOT to recognize the

  • Firefox UI is slow when typing or selecting text (after 33.0 update)

    After the 33.0 update, I noticed that typing or backspacing in any field on a webpage or even in the Firefox address bar is slow to echo, about a 1 second lag. Also, selecting typed text (to delete it, etc.) by a quick click-drag doesn't select the w