How to create a dynamic form with bind variables :schema & :table_name

My application has two LOV's, one to select a schema, and the next to select a table within that schema. I then have a button which passes me to a report which displays the data in that table.schema.
I now want to create a link to a form where I can edit the record based on the rowid of that table.schema, but it doesn't appear that I can create a dynamic form where I pass the schema.table_name and rowid. Is this possible? Can anyone advise how I can do this? The form builder only wants a fixed schema/table name.
Thanks in advance.
Stuart.

Hi Stuart,
In this sort of situation, you will need to be a bit creative.
I would suggest a pipeline function called as if it was a report.
Then you can pipe out the required fields.
Since you will have a variable number of fields, you could use two of the multi row field names for your field names and values.
Then after submit, you can create your own procedure to loop through the fields (stored for you in the Apex package) and update the table as required.
Not very specific I'm afraid, but it should work.
Regards
Michael

Similar Messages

  • How to create a Dynamic Datatable with sorting functioanlity

    Hi,
    I am new to JSF and need some help can some one please tell me how to create a dynamic datatable with sorting functionality. I am reading data data from a database table and wants to build the datatable dynamically based on the columns returned. I know how to created a datatble with a fixed number of columns but can't figure out how to create a datatable dynamically with sort functionality. Any small example will help.
    Thanks

    Hi,
    Here is what I have so far and can't figure out how to add the sorting functionality. Any help is appreciated.
    Managed Bean:
    private List<MyDto> data ;
        public HtmlDataTable getDataTableOne ()
            if ( dataTableOne == null )
                populateCheckBoxes () ; // Preload.
                populateDynamicDataTableOne () ;
            return dataTableOne ;
        public void populateCheckBoxes ()
            data = new ArrayList<MyDto> () ;
            MyDto myDto1 = new MyDto () ;
            MyDto myDto2 = new MyDto () ;
            MyDto myDto3 = new MyDto () ;
            MyDto myDto4 = new MyDto () ;
            myDto1.setChecked ( true ) ;
            myDto1.setValue ( "myDto1" ) ;
            myDto2.setChecked ( false ) ;
            myDto2.setValue ( "myDto2" ) ;
            myDto3.setChecked ( false ) ;
            myDto3.setValue ( "myDto3" ) ;
            myDto4.setChecked ( true ) ;
            myDto4.setValue ( "myDto4" ) ;
            data.add ( myDto1 ) ;
            data.add ( myDto2 ) ;
            data.add ( myDto3 ) ;
            data.add ( myDto4 ) ;
        public void populateDynamicDataTableOne ()
            dataTableOne = new HtmlDataTable () ;
            UIOutput header = new UIOutput () ;
            header.setValue ( "" ) ;
            UIColumn tableColumn ;
            tableColumn = new UIColumn () ;
            HtmlOutputText textHeader = new HtmlOutputText () ;
            textHeader.setValue ( "" ) ;
            tableColumn.setHeader ( textHeader ) ;
            HtmlSelectBooleanCheckbox tCheckBox = new HtmlSelectBooleanCheckbox () ;
            tCheckBox.setValueBinding ( "value" , FacesContext.getCurrentInstance ().getApplication ().createValueBinding ( "#{row.checked}" ) ) ;
            tableColumn.getChildren ().add ( tCheckBox ) ;
            // Set output.
            UIOutput output = new UIOutput () ;
            ValueBinding myItem = FacesContext.getCurrentInstance ().getApplication ().createValueBinding ( "#{row.value}" ) ;
            output.setValueBinding ( "value" , myItem ) ;
            // Set header (optional).
            UIOutput header2 = new UIOutput () ;
            header2.setValue ( "" ) ;
            UIColumn column = new UIColumn () ;
            column.setHeader ( header2 ) ;
            column.getChildren ().add ( output ) ;
            dataTableOne.getChildren ().add ( tableColumn ) ;
            dataTableOne.getChildren ().add ( column ) ;
    MyDto.java
    public class MyDto
        private Boolean checked;
        private String value;
        public MyDto ()
        public void setChecked ( Boolean checked )
            this.checked = checked;
        public Boolean getChecked ()
            return checked ;
        public void setValue ( String value )
            this.value = value;
        public String getValue ()
            return value ;
    JSP
    <h:dataTable id="table" value="#{myRequestBean.data}" binding="#{myRequestBean.dataTableOne}" var="row" />Thanks

  • How to create Report Writer Form with page longer than 255

    As i need to create report writer form with many columns which exceed than 1 acceptable page, how can I create since in writer there is no Horizontal Page as in report painter.
    Thank you very much.
    Sirirak

    check it out.
    pretty simple example
    http://www.baigzeeshan.com/2010/04/creating-simple-search-form-in-oracle.html
    here is the example what you 're looking instead of af:table have your form.

  • Create collection from query with bind variable

    Apex 4.0.2
    Per Joel Re: Collection with bind variable the apex_collection.create_collection_from_query_b supports queries containing bind variable references (:P1_X) but I am not sure how to use this feature, the documentation doesn't have an example, just the API signature for the overloaded version has changed.
    If the query contains 2 bind variable references to session state (:P1_X and :P1_Y), can someone please show an example of what to pass in for the p_names and p_values parameters to the API?
    Thanks
    procedure create_collection_from_query_b(
        -- Create a named collection from the supplied query using bulk operations.  The query will
        -- be parsed as the application owner.  If a collection exists with the same name for the current
        -- user in the same session for the current Flow ID, an application error will be raised.
        -- This procedure uses bulk dynamic SQL to perform the fetch and insert operations into the named
        -- collection.  Two limitations are imposed by this procedure:
        --   1) The MD5 checksum for the member data will not be computed
        --   2) No column value in query p_query can exceed 2,000 bytes
        -- Arguments:
        --     p_collection_name   =  Name of collection.  Maximum length can be
        --                            255 bytes.  Note that collection_names are case-insensitive,
        --                            as the collection name will be converted to upper case
        --     p_query             =  Query to be executed which will populate the members of the
        --                            collection.  If p_query is numeric, it is assumed to be
        --                            a DBMS_SQL cursor.
        -- example(s):
        --     l_query := 'select make, model, caliber from firearms';
        --     apex_collection.create_collection_from_query_b( p_collection_name => 'Firearm', p_query => l_query );
        p_collection_name in varchar2,
        p_query           in varchar2,
        p_names           in wwv_flow_global.vc_arr2,
        p_values          in wwv_flow_global.vc_arr2,
        p_max_row_count   in number default null)
        ;

    VANJ wrote:
    Apex 4.0.2
    Per Joel Re: Collection with bind variable the apex_collection.create_collection_from_query_b supports queries containing bind variable references (:P1_X) but I am not sure how to use this feature, the documentation doesn't have an example, just the API signature for the overloaded version has changed.
    If the query contains 2 bind variable references to session state (:P1_X and :P1_Y), can someone please show an example of what to pass in for the p_names and p_values parameters to the API?Not tried it, but guessing something like
    apex_collection.create_collection_from_query_b(
        p_collection_name => 'foobar'
      , p_query => 'select f.foo_id, b.bar_id, b.baz from foo f, bar b where f.foo_id = b.foo_id and f.x = to_number(:p1_x) and b.y = :p1_y'
      , p_names => apex_util.string_to_table('p1_x:p1_y')
      , p_values => apex_util.string_to_table(v('p1_x') || ':' || v('p1_y')))

  • How to add '%' to a query with bind variables

    Hi,
    I am using oracle jdeveloper 11g.
    I am trying to create a table to display rows using the below query in a jspx page,
    select * from ade_txns where series='WORKPLACE_PT.11.1.1.8.0_GENERIC' and transaction like 'rkumara%'
    I am using a view with query and binding variables as below,
    select * from ade_txns where series= :p_series and transaction like :p_QAEngineer
    I will be passing p_QAEngineer using binding variable using 'ExecuteWithParams' using a dropdown(eg: 'rkumara'). But I need to add a '%' to this value as I am using a 'LIKE' clause in my query.
    I tried using,
    select * from ade_txns where series= :p_series and transaction like :p_QAEngineer+'%'
    But this is not working for me.
    Can someone please tell me how i can solve this.
    Thanks,
    Ranjeet

    does this help also?
    How to add regular expression in viewobject bind variables
    ~Abhijit

  • How to create a XML Form with confirmation Page

    Hi!
    I need to create a XML Form that have a confirmation page to enter de data and save it (into XML file).
    It's possible to make it with the XML Forms Builder, or I need to make it manual at xml & xsl??
    (Sorry about my poor english!)

    Hi Ernesto,
    there is currently no confirmation message available in the XMLForms EditForm. But you can use the "preview" button to show how it looks like, before you are using the "Save" button.
    Regards
    --Matthias

  • How to create a master form with selectable/insertable subforms?

    I have created a general information form for business services we offer, at the bottom of the form I have made several check boxes so that the person who fills out the form with all of the general information can then select the service they want to sign up for-
    Is there a way to make my form open the specific subform for the services that are selected?
    for instance-
    They fill out their name, address etc and then select the check box for services they want- ideally i would like adobe to know that there is another form associated with that check box and then add that form onto the bottom of the general information form so that the customer can then complete the order form for that service instead of having to go back and request the specific form for that service that they selected on the general information form.
    I am not sure how to put this clearly??
    Example:
    Please select the services you desire from the items below
    (Check box) Toll Free
    (Check box) SIP Interop
    (Check box) Hosted IP
    Say they selected toll free and sip interop from the list, is there a way to make adobe know that it then needs to open those 2 separate forms so the person can complete them?

    Create a JPanel based on the second detail table with the wizard and add manually the JPanel to the Master-detail Form.
    Regards
    Fred

  • How to Create a Dynamic Form

    Hi All,
    I am trying to build a dynamic form in Flex. The idea is to
    have a generic form component that contains a standard header and
    footer with a dynamically generated body. The body ( all the form
    items ) will be generated dynamically by an XML File. In theory to
    create any form all I would do is use the generic form and create
    the xml for the body and I'm done.
    I have been searching all over for a sample and have yet to
    find one. Has anyone done something like this? I see several
    similar questions in this forum but they have gone unanswered. I
    would greatly appreciate any help you can offer.
    Thanks
    STeveR

    Using State the following program does work and have
    something similar to your requirements..
    though not being generated according to an xml structure it
    does create form controls dynamically.
    I myself am trying to create several form items from xml
    files and the content of the xml file I am not aware of completely.
    It might have n number of occurances of a group of form
    controls all depending on the out put of the xml file which in
    itself ois generated dynamically from a server side script.
    I have not really been successful in doing what I need. But I
    hope to solve this problem using the approach taken in this
    example. but I believe there must be a better way to do what I am
    trying to do. AM trying to figure this out since yesterday and yeah
    I am making progress and hope to resolve it soon...
    I need to comeplete it today itself..
    will get back with more that comes to my mind.
    If anyone has any thoughts on it Please do post back..
    <?xml version="1.0"?>
    <!-- states\StatesDefInstan.mxml -->
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    initialize="initializeApplication();">
    <mx:Script>
    <![CDATA[
    import mx.core.*;
    import mx.states.*;
    private function initializeApplication():void {
    //Code for adding a static button.
    // Create the Button to be added
    var newButton:Button = new Button();
    newButton.label = "New Button";
    // Create an AddChild object that adds the button.
    var addChild:AddChild = new AddChild();
    addChild.relativeTo = myPanel;
    addChild.target = newButton;
    // Create a State object
    var newState:State = new State();
    newState.name = "added";
    newState.overrides = new Array();
    newState.overrides.push(addChild);
    // Initialize the states property of the Application.
    // and add the new state.
    states = new Array ();
    states.push(newState);
    //Code for adding a dynamically created button.
    // Create an add AddChild object that adds the button.
    var addChildDyn:AddChild = new AddChild();
    addChildDyn.relativeTo = myPanel;
    // Explicitly set the AddChild targetFactory property
    // to a factory
    // that runs the createMyButton method to create the button.
    addChildDyn.targetFactory =
    new DeferredInstanceFromFunction(createMyButton);
    // Create State object with the addChildDyn override.
    var newState2:State = new State();
    newState2.name = "dynAdded";
    newState2.overrides = new Array();
    newState2.overrides.push(addChildDyn);
    //Add the state to the Application's states property.
    states.push(newState2);
    // Function to create a new Button control.
    public function createMyButton():Object {
    var newButton:Button = new Button();
    newButton.label = "New Dynamic Button";
    return newButton;
    ]]>
    </mx:Script>
    <mx:Panel id="myPanel"
    title="Static and dynamic states"
    width="300" height="150">
    <!-- If the current state is not the added state, change
    to the
    added state; if the current state is the added state,
    change to the base state. -->
    <mx:Button id="myButton" label="Toggle Static Button"
    click="currentState = currentState == 'added' ? '' :
    'added';"/>
    <!-- If the current state is not the dynAdded state,
    change to the
    dynAdded state; if current state is the dynAdded state,
    change to the base state. -->
    <mx:Button id="myButton2"
    label="Toggle Dynamic Button"
    click="currentState =
    currentState == 'dynAdded' ? '' : 'dynAdded';"/>
    </mx:Panel>
    </mx:Application>
    Thanks,
    Bijay

  • How to create a JClient form with one master block & multiple detail block?

    Hello,
    I am using Jdevelopver 10.1.2
    I want to have a JClient Form with one master table A and two detail tables B, C.
    But in the JClient Form wizard, I can only create a one master with one detail relationship. Can I create multiple details in that wizard ?
    Thanks
    Stephen

    Create a JPanel based on the second detail table with the wizard and add manually the JPanel to the Master-detail Form.
    Regards
    Fred

  • How to use List of values with bind variables on item?

    Hi
    I made a dynamic list of values with a bind variable as a provider. I tried to run the list, and it worked fine - i filled inn the bind variable when asked for, and i got a list of values to choose from.
    I would very much like to use this list of values as an attribute on a custom made item. My wish is that when creating the item you someplace write the bind variable, and the list will then turn up as wanted. (I could f.ex add the variable as an attribute on the page type)
    I tried to create a custom attribute and assign the list of values to it. It created an error when I then tried to add the attribute to the item.
    Does anyone have any idea on how to solve this?
    Any help appreciated!
    Maja R. Anjer

    Hi
    i am getting error as
    oracle.apps.fnd.framework.OAException: oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT * FROM (SELECT meaning, lookup_code,lookup_type
    FROM fnd_lookup_values
    WHERE view_application_id = 200) QRSLT WHERE (lookup_type=:1 AND ( UPPER(MEANING) like :2 AND (MEANING like :3 OR MEANING like :4 OR MEANING like :5 OR MEANING like :6)))
    Thanks
    Mateti

  • Error in Dynamic LOV with Bind Variable

    Hi
    I created 2 Dynamic LOV's in which Second one is with a Bind Variable.Then I creted a Form and Attached the LOV's to the form fields.But I am getting the below mentioned error when i choose a value in the First LOV and the Second LOV is not Populated. I tried the same thing with the scott.dept and scott.emp table which is working fine.but when i try the same on my tables it is throwing me error.
    Can Anyone Suggest me what is the problem of these LOVs
    FYI
    1)I am writing SELECT on Views in the LOVs and the views are created on tables of a different of database.
    2)Below Mentioned LINK_TIT is my DB Link.
    Error Message:
    An unexpected error occurred: ORA-01722: invalid number
    ORA-02063: preceding line from LINK_TIT (WWV-16016)
    Error displaying form : ORA-01722: invalid number
    ORA-02063: preceding line from LINK_TIT (WWV-16408)
    Error displaying block : ORA-01722: invalid number
    ORA-02063: preceding line from LINK_TIT (WWV-16406)
    Error displaying item : ORA-01722: invalid number
    ORA-02063: preceding line from LINK_TIT (WWV-16404)
    Error ORA-01722: invalid number
    ORA-02063: preceding line from LINK_TIT, displaying DUMMY_FRM_BLEND.DEFAULT.SKU5ID.01, combobox (WWV-16405)
    The preference path does not exist: ORACLE.WEBVIEW.PARAMETERS.16172911255 (WWC-51000)

    Hi Everyone,
    This was a known Issue in Oracle 9i AS Portal.I referred to the
    metalink note ID 174116.1 which talks about the BUG No:1584284.and it gives some workaround to come across the BUG.
    I got my dependent LOV work after changing the NUMBER datatype in the Procedure to VARCHAR2.(Then in the PL i converted the character to number by the SQL function.)
    Regds
    Rajesh Kanna.V

  • How to run a sql statement with bind variable in a test environment

    Hello,
    I have a sql statement in prod that I like to run in test. I got the sql statement from statspack, but the statement has bind variables. How do I get this statement to run in test? Thank you.

    Hi,
    If you have the SQL statement and all the referenced objects are available in your test env then what is the problem to run it?
    If I am not wront to get your reqmnt...
    i.e
    SQL> select * from emp
    where emp_no = &empno
    and dept_code = &deptcode;
    Thanks

  • How to create a PDF form with multiple approvals?

    Hello ,
    I am trying to add approvals to a pdf I created . I am trying to add approvals such that
    once the form is filled up by the user and emailed to the concerned person (admin) , they approve the form , this action inturn sends the pdf to the next person who has to approve it and so such that the pdf file is "approved" when all approvers has put their approvals on it nd then the form gets sent back to the admin.
    Ive been trying various ways to get this done,
    any help wil be much appreciated , maybe its a simple fix and im missing something , but im very new to live cycle and have only designed basic forms so far.
    Thanks and Regards,
    Akshay

    Hello ,
    I am trying to add approvals to a pdf I created . I am trying to add approvals such that
    once the form is filled up by the user and emailed to the concerned person (admin) , they approve the form , this action inturn sends the pdf to the next person who has to approve it and so such that the pdf file is "approved" when all approvers has put their approvals on it nd then the form gets sent back to the admin.
    Ive been trying various ways to get this done,
    any help wil be much appreciated , maybe its a simple fix and im missing something , but im very new to live cycle and have only designed basic forms so far.
    Thanks and Regards,
    Akshay

  • How to save a completed form that was created as a dynamic form, with expandable files?

    I have created a dynamic PDF form with expandable fields etc. As this is to be accessible for customers to completed, how can they save a completed copy on their own PC?
    I tried it myself and I receive an error msg stating that I can only save a Blank Copy of this Form:  Data typed into this form will not be saved. Adobe Reader can only save a blank copy of this form.
    How can I create a dynamic form (with expandable fields/flowable layout etc) that allows the applicant to not only complete the form but also, to save a completed copy?

    Thanks! That worked , however I now have an additional issue.
    While the form works in Internet Explorer (I'm using IE11), in that it's viewable, it opens and allows me to save etc) it doesn't work in Google Chrome and I'm getting the below error message:
    Any ideas on why it doesn't display in Chrome and does in IE (I'm using the same PC and I'm using Adobe Reader XI)!
    there are other PDF forms on site that are not dynamic but are fillable, and these are opening!
    Thanks

  • Create a dynamic form where selected text boxes appears, based on options chosen in a drop-down box

    HELP!!! Can anyone please provide some guidance on how to create a dynamic form where selected text boxes appears, based on options chosen in a drop-down box.
    I have a form which – based on the department that's selected from a drop-down box – will have different form fields/text boxes, etc, made available.
    Is this possible in LiveCycle, if so, can you please provide the script/info - as needed.
    Thanks,

    In the preOpen event of the second dropdown list you put something like (in formCalc):
    if (dropdown1 == 1) then
    $.clearItems()
    $.setItems("Year, 2 Year,  3 Year")
    elseif (dropdown1 == 2) then
    $.clearItems()
    $.setItems("3 Year,  4 Year")
    endif

Maybe you are looking for

  • Register now to our series of exciting partner webinars!

    Join  Adobe Evangelist Adam Broadway on Wed, Apr 10th to learn how you can integrate Dreamweaver & Business  Catalyst and what workflows can be implemented between the two products. To make sure you can put your learning into practice, webinar partic

  • FRM-47032 : when converting from forms6i to forms10g

    Hello, There is a weird error I get when I execute a form that I have converted from forms6i (in a 8i db) into forms10g There is no pb when I execute de form in the 8i db But, it seems that the initialisation of a parameter cannot be done in the same

  • Icon name in ios?

    The app name and icon name are two different names on the ios. Plants Vs. Zombies shows up as pvz on the icon name.  How does one accomplish changing the icon name without changing the application name?

  • Query to ignore the records which are 6 months older

    I need a query to ignore the records which are 6 months older . my table is having a column named quote_date . I need to ignore the records whose quote date is 6 months older . Can any one help me in this regard. thanks in advance rakesh

  • UPDATE_ROW_CONFLICT error, get the details (columns, values)

    Hi, I am getting the following error: Error :Number of conflicts while synchronizing: 1 SyncResolver.UPDATE_ROW_CONFLICT row 0 attempt to update a row that has been updated or deleted by another user has anybody an idea how to get more information ab