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.

Similar Messages

  • 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.

  • How to implement the schema validation with XSD in adapter module

    Dear All,
    I am trying to develop a EJB as the file adapter mudule.
    Please guide me how to implement the schema validation of the source message with XSD.
    Or provide me the relative resources about this task.
    Thanks & Regards,
    Red
    Edited by: Grace Chien on Nov 19, 2008 8:23 AM

    Hi Grace,
    You can do the xml scema validation in PI7.1 version directly.
    To develop the adapter module for xml schema validation
    Validating messages in XI using XML Schema
    Schema Validation of Incoming Message
    Regards
    Goli Sridhar

  • How to do skip form validation ?

    hi,
    im using jdev 11.1.2.3,
    how to skip the form validation im using the global buttons..i created the global buttons in template ,template is accessing using page so i need to set skip validation for form

    You can skip form validation by setting immediate="true" for the buttons. However, this is non-recommended because you may get validation errors later (when you are in another page) if your form has already submitted part of its data through some PPR requests while you were dealing in the form (e.g. validation errors caused at commit time by ADF BC components which were modified but not validated yet).
    Dimitar

  • Dynamic form validation?

    hai friends,
        i need dynamic form validation . give any example?

    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 do I do form validation in dreamweaver cc 2014?

    I understand spry validation has gone away. And I read somewhere it was replaced by jquery - but I'm not seeing that anywhere in cc 2014.

    I use HTML5 forms now which contain a fair amount of built-in form validation. However, my main validation comes from PHP code in my form processing script.  I can't emphasize this enough, the only reliable way to validate forms is with server-side code.   Client-side validation (Spry, jQuery, etc..) is not 100% reliable because it uses JavaScript which can be turned off in browsers.
    Sometimes I need to support older browsers that don't honor the required attribute in HTML5 forms.  Bring out jQuery Validate.  It's lightweight, simple, and offers site users a nice visual clue when a required field is missing. See example below.  View source in browser to see the code. 
    HTML5 Form with jQuery Validation
    All that said, jQuery validate is strictly cosmetic. The real work is done with PHP.
    Nancy O.

  • 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

Maybe you are looking for

  • Mid-2011 Macbook Air - very slow wifi yet with OSX 10.9.2 (The Return)

    Referring to this previous post: https://discussions.apple.com/thread/5911893?tstart=0 Problem remains the same, wifi is simply impossible to use in OS X, and my "solution" to avoid throwing my Macbook Air into the rubbish bin is keep using Elementar

  • S820 and X2 Mobile Network connection

    Hi, I have two Lenovo Smartphones S820 and X2. I had my S820 for a couple of years and it has been working fine until september 2014 when mobile network started to act up, sometimes it worked and sometimes not. Google maps and a few apps worked all t

  • Pass a particular value  in the function module.

    Hi Gurus! I have a function module READ_HAUPTBUCH_TEXT , here in the importing table KONTENPLAN like ska1-ktopl. But I need to pass a value as ZNOA for KONTENPLAN while calling the function which is maintained in the db, but it is always picking up t

  • How do i update my blu ray player

    Can anyone tell me how to update my Blu Ray Player. It needs an update and I cant seem to find out how.

  • Fiefox not responding must hit ctrl,alt,deleate and close process.

    1) closing firefox .firefox not responding.Must hit ctrl,alt,deleat and go to processes and stop process. 2)when moving from one site to another after visiting about 3 or 4 sites unable to leave page,get indicator " loading"which continues forever pa