How to implement dynamic form?

Hi, all
Currently, I am using XPAAJ to merge xml data sent from Flex side and the pdf template in the server side which is designed by LiveCycle Designer.
But now my question is that my form is dynamic, like the rows of table. How could I implement such kind of functionality?
Thanks
Alan Ji

And actually, the exact requirement is that user should enter values in Flex pages and click "View as PDF", data will be sent back to merge with PDF template.
Under this situation, how could the form be dynamic?
Thanks for any help.

Similar Messages

  • How to implement Dynamic form validation

    Hello,
    I've been reading up on the forums about using the htmldb.item package to dynamically create form elements using a SQL query. Assuming I can generate the form dynamically, what approaches/options are available for implementing dynamic validation of the form elements themselves?
    Thanks in advance

    You could write a page-level 'PL/SQL Function Body returning error text' validation where you loop over your dynamic form elements (htmldb_application.g_fnn), check the values and raise errors as needed.

  • How to implement dynamic sql in owb

    Hi everybody,
    I am new to OWB and hence i want to know how i can implement the following dynamic sql statement in owb...
    Declare
    Cursor C_tab_col is
    Select cat from tbl_cat_edesc_1 ;
    Vcat varchar2(240);
    Cursor C_edesc_col is
    Select edesc from tbl_cat_edesc_1 ;
    Vedesc varchar2(240);
    V_Command varchar2(30000);
    Begin
    Open C_Tab_col;
    Fetch C_tab_col into vcat;
    Open C_edesc_col;
    Fetch C_edesc_col into vedesc;
    loop
    V_Command := 'update upd_catseg_1 c set c.'||vcat||'=';
    V_Command := V_Command||'(select d.sales from TEST_catseg d' ;
    V_Command := V_Command||' where edesc = '||''''||vedesc||''''||' and c.cardno=d.cardno)';
    dbms_output.put_line('10 '||V_command);
    Execute immediate v_command;
    Fetch C_tab_col into vcat;
    Exit when c_tab_col%notfound;
    Fetch C_edesc_col into vedesc;
    Exit when c_edesc_col%notfound;
    end loop;
    commit;
    end;
    Thanks a many

    Hi,
    first i have created a procedure witht he following code in the code editor...
    BEGIN
    Declare
    Cursor C_brand_col is
    Select cat from TBL_CAT_EDESC_BRAND ;
    Vbrand varchar2(240);
    Cursor C_bredesc_col is
    Select EDESC_BRAND from TBL_CAT_EDESC_BRAND;
    Vbredesc varchar2(240);
    V_Command varchar2(30000);
    Begin
    Open C_brand_col;
    Fetch C_brand_col into vbrand;
    Open C_bredesc_col;
    Fetch C_bredesc_col into vbredesc;
    loop
    V_Command := 'update sav_fc_sa_pc c set c.'||vbrand||'=';
    V_Command := V_Command||'(select d.fc_brands_sa from TEST_brand d' ;
    V_Command := V_Command||' where d.brand_edesc = '||''''||vbredesc||''''||' and c.cardno=d.cardno)';
    dbms_output.put_line('10 '||V_command);
    Execute immediate v_command;
    Fetch C_brand_col into vbrand;
    Exit when c_brand_col%notfound;
    Fetch C_bredesc_col into vbredesc;
    Exit when c_bredesc_col%notfound;
    end loop;
    commit;
    end;
    END;
    then i validate it and deply it..
    after that i create a mapping and in that mapping i first import the table TBL_CAT_EDESC_BRAND and drag and drop it into the mapping and again the i put the procedure into a transformation operator and connect the inoutgrp of the table to the transformation operator ingrp deploy it and run it...this is taking a lot of time .... so i am not sure whether i am doing the right thing...for this dynamic sql i dont need to pass any parameters. can i juz execute this procedure or should i create a mapping ???? i am totally confused... could you please help me.....how to proceed........
    if i juz execute the dynamic sql it takes only 5 min in sql but i am not sure how ti implement it in owb... can you please help...
    Thanks a many

  • How to implement Dynamic lookup in OWB mappings(10g)

    Hi,
    Iam using OWB 10g version for developing the mappings.
    Now I need to implement the Dynamic lookup in the mapping.Is there any transformations available in OWB to achieve this.
    Please give me some information about the same.
    Thanks in advance...

    Hi,
    first i have created a procedure witht he following code in the code editor...
    BEGIN
    Declare
    Cursor C_brand_col is
    Select cat from TBL_CAT_EDESC_BRAND ;
    Vbrand varchar2(240);
    Cursor C_bredesc_col is
    Select EDESC_BRAND from TBL_CAT_EDESC_BRAND;
    Vbredesc varchar2(240);
    V_Command varchar2(30000);
    Begin
    Open C_brand_col;
    Fetch C_brand_col into vbrand;
    Open C_bredesc_col;
    Fetch C_bredesc_col into vbredesc;
    loop
    V_Command := 'update sav_fc_sa_pc c set c.'||vbrand||'=';
    V_Command := V_Command||'(select d.fc_brands_sa from TEST_brand d' ;
    V_Command := V_Command||' where d.brand_edesc = '||''''||vbredesc||''''||' and c.cardno=d.cardno)';
    dbms_output.put_line('10 '||V_command);
    Execute immediate v_command;
    Fetch C_brand_col into vbrand;
    Exit when c_brand_col%notfound;
    Fetch C_bredesc_col into vbredesc;
    Exit when c_bredesc_col%notfound;
    end loop;
    commit;
    end;
    END;
    then i validate it and deply it..
    after that i create a mapping and in that mapping i first import the table TBL_CAT_EDESC_BRAND and drag and drop it into the mapping and again the i put the procedure into a transformation operator and connect the inoutgrp of the table to the transformation operator ingrp deploy it and run it...this is taking a lot of time .... so i am not sure whether i am doing the right thing...for this dynamic sql i dont need to pass any parameters. can i juz execute this procedure or should i create a mapping ???? i am totally confused... could you please help me.....how to proceed........
    if i juz execute the dynamic sql it takes only 5 min in sql but i am not sure how ti implement it in owb... can you please help...
    Thanks a many

  • How to implement a forms application with an application server

    Hi,
    I want to implement a forms application with OAS version 10.1.0.
    How to configure? Where can I find some documents?
    Max

    See
    http://www.oracle.com/technology/documentation/appserver.html
    and
    http://www.oracle.com/technology/products/forms/index.html

  • How to Implement Dynamic Modification Rule for Material & multiple vendor Combination

    Hi Team,
         In dynamic modification rule for Material &  vendor combination, i have maintained material & vendor in Inspection plan at Material Assignments
    1.If i purchase same material from different vendors then how to implement ?

    Hi Balaji,
    I am not sure if i have followed your requirement.
    What do you want to do with Vendor Z? Do you want to inspect each lot from Z?
    If yes:
    Then Create 2 Inspection plans with same Operations and Same MICs, In Material Assignment, mention Vendor as Z so that 1st inspection plan will only be for Vendor Z. Do not enter DMR in Header.
    In 2nd inspection plan Enter DMR and do not mention any vendor so this plan will be applicable for all vendors except Z.
    If No:
    Then create Qm info record for vendor Z with "No inspection" set in QI06.
    Amol.

  • How to implement Dynamic Context Node Mapping between Components

    Hey genuis:
               I am looking for how to implement context mapping bwteen two components. I read some threads, and try to use external context mapping. The example works fine. However, my requirement is more than that.
    I have a context node in Component B, and the attributes in it are dynamically generated. Component A is the main component which use Component B's function. Both A and B work fine by theirselves. 
    When I assemble A and B (external mapping), the system gives me a exception:com.sap.tc.webdynpro.progmodel.context.ContextException: MappedNodeInfo(T8UploadCompInterface.data): cannot create nodes, no mapping defined yet.
    Please give me some suggestion?
    Any responses are appreciated.

    I miss this thread.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/6fdae690-0201-0010-a580-d104b459cb44
    This is almost the right solution for my problem.

  • How to create dynamic forms

    Dear All,
    How is it possible to create a dynamic form controls in ADF?
    Well this is how my use case goes:
    A web service returns a schema that display the list of questions that user needs to supply.
    <questions>
         <question>
              <type>text<type>
              <data>What is your Name</data>
         </question>
         <question>
              <type>booleanOneChoice<type>
              <data>Gender</data>
              <list>
                   <value>M</value>
                   <value>F</value>
              </list>
         </question>
         <question>
              <type>choice<type>
              <data>Salary Range</data>
              <list>
                   <value>Less than 1000</value>
                   <value>Less than 10000</value>
                   <value>Greater than 10000</value>
              </list>
         </question>
    </questions>When this is rendered, I am should be able to see
    this sample pages in a form layout style.
    <af:inputText label="Label 1" id="it1"/>
    <af:selectOneRadio label="Label 1" id="sor1">
    </af:selectOneRadio>
    <af:selectOneChoice label="Label 1" id="soc1">
    </af:selectOneChoice>Sorry the question above is very trivial but I just wanted to simplify things?
    Has anyone done this use case before?

    Hi,
    I tried that code actually but you need some sort of an event before the components are shown.
    Say an event like when a button is click then you do some PPR.
    But my use case is like this, I need to create the component list from my managed bean
    before the page is shown to the user.
    Here's what I tried.
    I created a binding on my managed bean. Then I created a hidden output text
    and then I bind the value to a method of my managed bean.
    The purpose of the output text is so that I could call my managed bean method.
    <af:panelFormLayout id="pfl1"
        binding="#{pageFlowScope.myBean.dynamicForm}">
    </af:panelFormLayout>
    <af:outputText id="ot2" visible="false"
        value="#{pageFlowScope.myBean.generateRandomForm}"/>     My managed bean method is the one that populates the form
    public class MyBean{
          private RichPanelFormLayout dynaForm;
         public String generateRandomForm(){
              RichInputText text1 = new RichInputText();
              text1.setLabel("What is your name");
              dynaForm.getChildren().add(text1);
              AdfFacesContext ctx = AdfFacesContext.getCurrentInstance();
            ctx.addPartialTarget(this.getDynaForm());
              return null;
    }But, I notice that nothing is happening.
    What could be wrong in my approach?
    Thanks

  • How to Create Dynamic form using table data

    Dear All,
    I have one Table called PRODUCT_MASTER where product details are stored. Say product A,B,C,D are stored in the table. Another table called SUB_PRODUCT_MASTER, which contains sub product details.Say A1,A1,B1,B2, B3,C1, C2, C3, D1,D2,D3.
    Now, I want to create a dynamic form based on product,sub product. for a whole month. For better under standing here is the format.
    PRODUCT A B C D
    SUB_PROD A1 A2 B1 B2 B3 C1 C2 C3 D1 D2 D3
    Days
    1 x x x x x x x x
    2
    3
    4
    5
    6
    7
    Now whenever I add one row in the PRODUCT)MASTER table and SUB_PRODUCT_MASTER table, Form should add one column in the form automatically. e.g. If I add Product E with two Sub product E1 and E2 then form should add ptoduct E column in the form with sub products E1 and E2 as per above format. Here days are fixed to 31. This forms should accept product wise daily despatch entry. For
    storing despatch entry another table is created.
    Please help to create this type od forms.

    You want I believe to create Croos-Table(Matrix) form. Visit Cross-table (matrix) forms layout and add "Please Send me too".

  • How to implement Dynamic SQL in DataService ??

    Hi,
    Is there any way in ALDSP to implement Dynamic SQL in Dataservice ?
    My scenario is "based on set of optional fields i need to join different tables.If the optional field is not there then i don't have to join with the corresponding table."
    Thanks

    Ah yes, I thought that looked familiar. It's same question from July 12.
    There is no way to generate Dynamic SQL in DSP XQuery. There is one query plan for each query. The query plan does not change based on the inputs.
    Using a FilterXQuery on top of a query actually generates a new query. You can play with that if you like, but it is not particularly suited to changing joins. Go with the ad hoc query.

  • How to implement Dynamic Sort to an SQL classic report?

    Hi,
    I'm trying to implement dynamic sort to my working sql classic report, when user selects order by column from select item(action as submit page), the report should be refreshed and display with the selected column sort order.
    But not able to do so.
    Report Query:
    Select a, b, c from sample order by :P1_ORDER_BY
    P1_ORDER_BY - Select Item:
    STATIC2: Column 1;a, Column 2;b, Column 3;c
    Running page, report doesnt sorts in any of the column priority.
    Kindly guide.
    Regards,
    Krishna

    Of course the select item is in use.
    It should submit the the page on select so you can retrieve the current value in you report select statement.
    look here:
    http://apex.oracle.com/pls/apex/f?p=21296:2:
    table:
    create table sample
      a varchar2(30)
    , b varchar2(30)
    , c varchar2(30)
    insert into sample values('a','z','k');
    insert into sample values('b','y','d');
    insert into sample values('c','x','a');
    insert into sample values('d','w','b');
    commit;
    Select List:
    P2_ORDER_BY
    STATIC:Order by A;A,Order by B;B,Order by C;C
    Report select:
    select
    a,b,c
    from sample
    order by
      decode(:P2_ORDER_BY,'A',a,null)
    , decode(:P2_ORDER_BY,'B',b,null)
    , decode(:P2_ORDER_BY,'C',c,null)Marc
    Edited by: telemat on Aug 24, 2012 1:50 PM

  • How to make dynamic form fields update?

    This is going to be an ugly post, fair warning! :)
    I have a form that gets it's labels and text input field
    names dynamically from a database. Rather than having the form
    hardcoded, we are able to add new columns to a table and the form
    automatically adds new labels and fields via CFQUERY.
    When the form is completed and they submit (method post), the
    database is supposed to update. However, because our input field
    names are being populated via query, we can't write a static update
    query when we add new form items.
    So, I do have a solution to this (in my head), but I'm stuck
    at a bit of logic and am having trouble getting it out in code. I'm
    looking for a way to write #FORM.#fieldname## (here is where it
    gets ugly). Since the form submits by post method, I am left with a
    bunch of FORM.fieldname's on my action page (and fieldname is
    generic for what the actual variables are).
    So here's how I am updating:
    I have a table (call it table1) that contains a column of all
    the column names of my data table (table2). This table is used for
    query purposes only, no data is updated here from the form.
    I query table1 to call all the names of the columns in
    table2.
    <cquery datasource="exdb" name="exname">
    SELECT columnName
    FROM table1
    </cfquery>
    Then I write the update query which will update items as they
    are looped using CFOUTPUT:
    <CFOUTPUT QUERY="exname">
    <cfquery datasource="exdb" name="exupdate">
    UPDATE table2
    SET #columnName# = #FORM.<columnName>#
    WHERE itemID = #FORM.itemID#
    This is my dilemma. As you can see, the cfoutput is a loop..
    so let's take the first item in the loop, call it "name1". So our
    update query says SET name1 = #FORM.name1#, and this will update
    the table with whatever was submitted in name1's input field. The
    cfoutput loops again, this time it's name2. SET name2 =
    #FORM.name2#. Now the form does include a hidden input of itemID to
    specify where the table should be updating, as you can see above.
    So, now that you see how this works, my problem is getting
    #FORM.<columnName># to be FORM.name1, FORM.name2, etc.
    In Coldfusion you would write #FORM.variable# to call a FORM
    item. However, since the variable is pretty much undefined and we
    use a query to populate it, we need to do #FORM.#variable## where
    #variable# needs to be resolved before #FORM._______#
    Are you with me on this? It's very complex in explanation,
    but if you need more info, I can provide it more clearly. Let me
    know what you guys think. Really, I have the solution, but getting
    #FORM.#columnName## to resolve is another problem. I think what i
    need is to figure out the order of operation for that statement, so
    #columnName# resolves first.

    You'll want to use the scope structure notation when dealing
    with your form variables. The variable Form.SomeVar can also be
    written as Form["SomeVar"]. Using this syntax, you can do something
    like this:
    UPDATE table2
    SET #columnName# = #FORM[columnName]#
    WHERE itemID = #FORM.itemID#
    You may also want to look into the following to help optimize
    your code:
    1) check out how to use <cfqueryparam> - it might speed
    your code up a bit.
    2) depending on the DB you are using, you may be able to
    combine all of your UPDATE SQL commands inside 1 <cfquery>
    </cfquery> block. This will allow you to do all your database
    actions with 1 DB connection, instead of a bunch (works in MSSQL,
    not sure about Oracle or MySQL)

  • How to creater dynamic form in Acrobat 9

    Can I make a form that will dynamically add pages (with header and footer) when needed in Adobe Acrobat 9 and if so where is the best documentation on how to do this?

    You can dynamically add pages using templates. This requires some relatively simple JavaScript programming. It will work in Acrobat (Pro or Standard) and Reader 11 (Win/mac), but not previous versions of Reader. Here are some links to the Acrobat javaScript reference:
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_Dev_Templates.80.1.html
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_Dev_Templates.80.2.html
    http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.1216.html
    If you don't get a two-paned window with the navigation pane on the left, click "Show Navigation" icon in the upper-left.
    If it has to work with previous versions for Reader, Acrobat 9 Pro for Windows comes with the LiveCycle Designer application. With it you can create dynamic XFA forms that can work with Reader.

  • How to implement this Form page in ApEx

    Hi,
    I'm using ApEx 4.0.1 with Oracle 10g r2.
    We have an old form (built with Forms 10g) that we want to implement with ApEx.
    Data are shown using some items and I can't find how to do the same with ApEx. It is quite hard to explain so here is a screenshot (png) : http://bailly.yann.free.fr/autres/OTNForums/form_mesures_offsets.png
    Buttons with arrows allow user to navigate through the records. A PL/SQL program is currently used to fetch rows.
    So it seems I can't use a report because I can't fetch all rows with a single query.
    And I don't want to use modifiable items (textfields, textarea, ...) like in that form but simply show all data.
    Any idea on how I can achieve this ?
    Thanks!
    Yann.

    So it looked to me like a single form tied to a custom query to retrieve the data will be sufficient. I would start with about 5 items including your key id. Then create a custom procedure that fires BEFORE HEADER like this:
    declare
    begin
      select COL1, COL2, COL3, COL4
        into :PX_VAR1, :PX_VAR2, :PX_VAR3, :PX_VAR4
        from MY_TABLE
       where KEY_ID = :PX_KEY;
    end;You can make the SQL retrieval as complicated as you need. You will have to determine how to populate the Key field, whether that is by passing in a variable from another page or using another process to get it. Once you have a few items working, start creating the rest of your page items and add them to the query procedure.
    If you need to change any of them, you can create a second procedure that saves the information back to the DB:
    declare
    begin
      UPDATE MY_TABLE set COL1 = :PX_VAR1, COL2 = :PX_VAR2, COL3 = :PX_VAR3, COL4 = :PX_VAR4
       where KEY_ID = :PX_KEY;
    end;

  • How to implement next_record; (FORMS) in ADF

    Hi,
    I would like to implements automatically create new record when i press enter on a <af:inputText like next_record in forms, and copying some data from the current rowto the next row
    thanks
    Fakhri

    I found a solution for navigation between input text in <af:table that works fine in FireFox but not in Chrome :
    I create the javascript in the main page :
    <af:document title="index.jsf" id="d1">
    <f:facet name="metaContainer">
    <af:resource type="javascript">
    function setFocusMatric(evt) {
    var _keyCode = evt.getKeyCode();
    var compid = AdfPage.PAGE.findComponentByAbsoluteId("r1:r1:pc2:t2:matric");
    if (_keyCode == AdfKeyStroke.ENTER_KEY) {
    compid.focus();
    function setFocusValeur(evt) {
    var _keyCode = evt.getKeyCode();
    var compid = AdfPage.PAGE.findComponentByAbsoluteId("r1:r1:pc2:t2:val");
    if (_keyCode == AdfKeyStroke.ENTER_KEY) {
    compid.focus();
    function setFocusImpor(evt) {
    var _keyCode = evt.getKeyCode();
    var compid = AdfPage.PAGE.findComponentByAbsoluteId("r1:r1:pc2:t2:impor");
    if (_keyCode == AdfKeyStroke.ENTER_KEY) {
    compid.focus();
    </af:resource>
    </f:facet>
    <af:messages id="m1"/>
    <af:form id="f1">
    <af:decorativeBox id="db1" topHeight="60px">
    <f:facet name="center">
    <af:region value="#{bindings.dynamicRegion1.regionModel}" id="r1"
    partialTriggers="::reshum ::ctb4"/>
    </f:facet>
    <f:facet name="top">
    <af:panelHeader text="Module Administratif" id="ph1">
    <f:facet name="context"/>
    <f:facet name="menuBar"/>
    <f:facet name="toolbar"/>
    <f:facet name="legend"/>
    <f:facet name="info"/>
    <af:panelGroupLayout id="pgl1" layout="horizontal" halign="center">
    <af:commandButton text="Rollback" disabled="#{!bindings.Rollback.enabled}" immediate="true"
    id="cb1" action="#{viewScope.index.doCancel}" rendered="false">
    <af:resetActionListener/>
    </af:commandButton>
    <af:spacer width="30" height="10" id="s7"/>
    <af:commandToolbarButton id="reshum"
    inlineStyle="font-weight:bolder; text-align:center; vertical-align:middle; background-color:transparent;"
    partialSubmit="true" text="Resource Humaines" partialTriggers=""
    action="#{viewScope.index.rhtaskflowdefinition}"/>
    <af:spacer width="50" height="10" id="s6"/>
    <af:commandToolbarButton id="ctb4" partialSubmit="true"
    inlineStyle="font-weight:bolder; width:100px; text-align:center; vertical-align:middle; background-color:transparent;"
    text="Salaires"
    action="#{viewScope.index.salairetaskflowdefinition}"/>
    <af:spacer width="30" height="10" id="s1"/>
    after in my jsff :
    <af:inputListOfValues id="impor"
    popupTitle="Search and Select: #{bindings.DrdetimView3.hints.Cdimpor.label}"
    value="#{row.bindings.Cdimpor.inputValue}"
    model="#{row.bindings.Cdimpor.listOfValuesModel}"
    required="#{bindings.DrdetimView3.hints.Cdimpor.mandatory}"
    columns="#{bindings.DrdetimView3.hints.Cdimpor.displayWidth}"
    shortDesc="#{bindings.DrdetimView3.hints.Cdimpor.tooltip}"
    partialTriggers=":::ctb1 :::ctb2">
    <f:validator binding="#{row.bindings.Cdimpor.validator}"/>
    <af:clientListener method="*setFocusMatric*" type="keyPress"/>
    in FireFox the navigation was succeeded but Chrome cannot fire the AdfKeyStroke.ENTER_KEY
    is there another solution for all web browser
    thanks

Maybe you are looking for

  • Expected values are not reflecting in the BW

    Dear Experts, My Infocube or Report is not reflecting exact values as in source system. Can any one provide possible reasons. Thanks & Regards, Raj

  • Cisco ISE 1.2 single SSID

    Hi there. I wanna make a solution based on ONE ssid for BYOD non-corporate and the coporate endpoints. All BYOD devices will get limited internet access and corporate devices should get all access to the internal servers. How can I solve this one by

  • Siri not recognizing new incoming messages on 4s using iOS 8.1

    Help! I upgraded my 4s to iOS 8.1.1. Now when I'm using my bluetooth device, Siri does not recognize any text messages or iMessages that I get. I ask it to read me the last incoming message, which worked nicely before the upgrade, and it tells me tha

  • Guidance for preparation of OCA

    I'm planning to do OCA developer track on 11g. Could someone please guide me on how to prepare for this exam. Links to materials would be appreciated. Thanks

  • Skrolu mouse does not work properly in the list of bookmarks

    skrolu mouse does not work properly in the list of bookmarks yer imleri listesinde maus skrolu düzgün çalışmıyor