Dynamically render items

Is there a way I can dynamically render items on a page?
I have a table with item names, types (radio, checkbox, etc), default values and labels. I want to be able to just add rows to this table and have them show up just as if I had manually added the items using the App Builder. After Submit procesing for the page should be able to access the values of the items just as "easily"
Thanks

Hi, <BR><BR>
Ok, I've created a plsql region as follows to dynamically build my form:<BR><BR>
DECLARE<BR>
--Cursor to pull out all active records from RES_DLV_CONSERVATION table<BR>
cursor c_records is <BR>
select CON_ID, CON_SCHEME <BR>
from RES_DLV_CONSERVATION <BR>
where CON_ACTIVE = 1;<BR>
--Variables to hold the records from the cursor<BR>
v_id number;<BR>
v_record varchar2(4000);<BR><BR>
BEGIN<BR><BR>
--Open a table to hold the manually created Accreditation form<BR>
htp.p('<table>');<BR><BR>
--open cursor and loop through records populating variables<BR>
open c_records;<BR>
loop<BR>
fetch c_records into v_id, v_record;<BR>
exit when c_records%notfound;<BR><BR>
<i>--Build a form dynamically using the variables. <BR>
--Use the record id to create the names of the form items<BR>
--so they can be referenced later. <BR>
--('chk_' prefix for checkboxes, 'inp_' prefix for text)</i><BR><BR>
htp.p('<tr><BR>
<td><font class="label_def">'||v_record||' </font></td><BR>
<td><input type="checkbox" name="chk_'||v_id||'"></input> </td><BR>
<td><font class="label_def">Names of Accredited Staff</font></td><BR>
<td><input type="text" name="inp_'||v_id||'" style="width:300"></input><BR>
Seperate each name with a comma (,)</td><tr>');<BR>
end loop;<BR>
close c_records;<BR><BR>
--Close table<BR>
htp.p('</table>');<BR><BR>
END;<BR><BR>
I've named each of by items using the record id. <BR>
I now have to create an insert function to populate my table from the form<BR>
How do I then reference these items manually to insert the values into my table.<BR><BR>
Cheers<BR>
Yog

Similar Messages

  • Best Practice: Dynamically changing Item-Level permissions?

    Hi all,
    Can you share your opinion on the best practice for Dynamically changing item permissions?
    For example, given this scenario:
    Item Creator can create an initial item.
    After item creator creates, the item becomes read-only for him. Other users can create, but they can only see their own entries (Created by).
    At any point in time, other users can be given Read access (or any other access) by an Administrator to a specific item.
    The item is then given edit permission to a Reviewer and Approver. Reviewers can only edit, and Approvers can only approve.
    After the item has been reviewed, the item becomes read-only to everyone.
    I read that there is only a specific number of unique permissions for a List / Library before performance issues start to set in. Given the requirements above, it looks like item-level permission is unavoidable.
    Do you have certain ideas how best to go with this?
    Thank you!

    Hi,
    According to your post, my understanding is that you wanted to change item level permission.
    There is no out of the box way to accomplish this with SharePoint.               
    You can create a custom permission level using Visual Studio to allow users to add & view items, but not edit permission.   
    Then create a group with the custom permission level. The users in this group would have the permission of create & add permission, but they could no edit the item.
    In the CodePlex, there is a custom workflow activities, but by default it only have four permission level:
    Full Control , Design ,Contribute and Read.
    You should also customize some permission levels for your scenario. 
    What’s more, when use the SharePoint 2013 designer, you should only use the 2010 platform to create the workflow using this activities,
    https://spdactivities.codeplex.com/wikipage?title=Grant%20Permission%20on%20Item
    Thanks & Regards,
    Jason
    Jason Guo
    TechNet Community Support

  • To get the value of Dynamically generated Items

    Hi , i am Writting an applications using HTMLDB, i have a page which is an input page for inputting number of hours you worked on different projects i am createing the Input text filed items dynamically through web PL/SQL , what i want to do is when the user click on the sumbit button i want to read the values of the ITem and insert into a table , since they are dynamically created Items how does HTML DB handle them is there a way to get the Value for the items i tried displaying &P9_1. which is one of the items created dynamicaly but empty value is displayed.
    Any assiatnce is of great help.
    Thanks in advance
    Bharath

    This is done once the page is submitted, and the values are available in the arrays e.g. htmldb_application.g_f01 etc.
    This is covered in the manual

  • Struts-Layout layout:tabs Problem; dynamically render tabs

    hi,
    i have been trying to combine the <layout:collection> and <layout:tabs> tags to dynamically render tabs. (if the collection contains 5 objects, i wanna have 5 tabs, and if the collection contains 2 objects, i wanna have 2 tabs...)
    like this:
    <layout:form action="/someAction.do" styleClass="FORM">
    <layout:tabs styleClass="FORM" width="400">
    <layout:collection property="aProperty" indexId="index" >
    <layout:tab key='${index}' width="50">
    <layout:collectionItem title="rooms.token">
    <layout:text property="aProperty[${index}].BID" layout="false" size="5"/>
    </layout:collectionItem>
    </layout:tab>
    </layout:collection>
    </layout:tabs>
    </layout:form>
    It renders, but it is not displayed correctly. for example, if there are 2 objects in the collection, i get 3 tabs. and the rendered html-table contains mistakes and destroys my page.
    has anyone an idea what i could do?
    I appreciate any help, thank you, martin

    Do anyone kno more about Struts-Layout-tabs...........In a Struts forum? Probably.

  • Liquid {module_cataloguelistdump} - render items to remove ul

    Hi
    I think this is a classic benefit of using Liquid to control what's rendered, but I can't get it working. I basically need to remove the <ul></ul> tags and render just the <li> items using a custom template.
    The module ref is:
    {module_cataloguelistdump catalogId="30061" render=“item” collection=“catalog-list” template=“/custom-templates/menu-item.tpl”}
    And the template is:
    <li><a href="{{url}}">{{name}}</a></li>
    Any pointers appreciated, and definitely havern't got my head round Liquid yet.
    Cheers
    Paul

    Thanks for the pointers Liam....I have it working now, to share the solution:
    {module_cataloguelistdump catalogId="30061" collection="catalog-list" template=""}
    {% for item in catalog-list.items %}
    <li><a href="{{item.url}}">{{item.name}}</a></li>
    {%endfor%}
    Cheers

  • Dynamic line items creation Programatically.

    My requirement is to manually create Dynamic line items based on
    some values from the existing dynamic line item.
    During Dynamic Line Item processing; When the Last 3 chars of Z field
    ZWBSMOD is changing; then insert a DLI with Material is
    MODULE-<3 chars>.
    Which the exit for creating DLI programatically ??

    Hi Amruta,
    Your question is not clear, could you please explian where you want to add line item dynamically?
    Regards,
    Surender

  • How to dynamically changes items properties

    How to dynamically changes items properties likes position order in tabular view, width, prompt

    Many object properties can be set programmatically at runtime. For example, each window object has a Visible property that can be set to either Yes or No to show and hide the window. At runtime, you can call the built-in procedure SET_WINDOW_PROPERTY to show or hide the window dynamically, as shown here:
    Set_Window_Property('my_window',VISIBLE, PROPERTY_ON);
    The following built-in procedures are available for setting object properties at runtime:
    -     SET_BLOCK_PROPERTY
    -     SET_CANVAS_PROPERTY
    -     SET_FORM_PROPERTY
    -     SET_ITEM_PROPERTY
    -     SET_LOV_PROPERTY
    -     SET_MENU_ITEM_PROPERTY
    -     SET_PARAMETER_ATTR
    -     SET_RADIO_BUTTON_PROPERTY
    -     SET_RECORD_PROPERTY
    -     SET_RELATION_PROPERTY
    -     SET_VIEW_PROPERTY
    -     SET_WINDOW_PROPERTY
    The built-in procedure SET_ITEM_PROPERTY can be used to set the properties of any type of item, including buttons, text items, check boxes, radio groups, etc.
    Note: Radio group items include individual radio buttons; use SET_ITEM_PROPERTY to set the properties of the radio group, and SET_RADIO_BUTTON_PROPERTY to set the properties of the individual buttons in the group.
    Each built-in SET procedure has a corresponding GET function that allows you to programmatically determine the current setting of an object's properties. The following example uses GET_WINDOW_PROPERTY to determine if a window is currently hidden (VISIBLE = FALSE). If the window is hidden, SET_WINDOW_PROPERTY is called to show the window.
    If Get_Window_Property('my_window',VISIBLE) = 'FALSE' THEN
    Set_Window_Property('my_window',VISIBLE,PROPERTY_ON);
    To determine if a particular property can be set programmatically, refer to the property descriptions in online Help.

  • Nested Portlets and ability to dynamically render Portlets

    hi,
    I have a dynamic page created to show a set of product items. This is then rendered as a Portlets- each a specific instance (parameter) of the dynamic page.
    If the User decides to look at a different set of "groups"/portlets, I would like to call an API which renders as many portlets as the number of groups User wishes to see.
    I am basically looking for a way to spawn certain number of portlets on a page, and supply a parameter to each of them while doing it.
    So, every user would have his/her set of Portlets chosen.
    Keep in mind that all these portlets are the same, but different parameters.
    Is there an API to call/render portlets on a page.
    regards
    -Ananth

    Ananth did you find this
    How to call a portlet on the page

  • Dynamic Region - Item value turns to NULL

    Hi,
    I have a dynamic region which has some APEX_ITEM.CHECKBOX items in it. I count the checkbox groups and write it into a hidden object as like this.
    In the last row of the code i want to insert the count into P65_CNT_QUESTIONS hidden item.
    But when i submit the page i always get NULL from the P65_CNT_QUESTIONS item.
    Before i submit the page i see the correct value in the session but when i submit, it turns to null.
    I am getting crazy Whats the problem with it. Any suggestion?
    System: MS7 - XE - Oracle Database 10g Express Edition Release 10.2.0.1.0 - Product - Apex 4.0
    declare
    cursor c_h is select distinct qh.nquestion_header_id, vquestion_header from tquestions q, tquestion_headers qh
    where q.nquestion_header_id = qh.nquestion_header_id order by 1;
    cursor c_ans is  select nparam_id,vparam  from TQUESTION_PARAMS order by 1;
    l_cnt number := 0;
    l_hid number := 0;
    l_br varchar2(10) := '<br/>';
    l_tab varchar(50) := '      ';
    l_de varchar2(1000);
    l_hea_cnt NUMBER := 1;
    l_que_cnt NUMBER := 1;
    begin
    FOR rec_c in c_h LOOP
    htp.p(l_br||'<b>'|| l_hea_cnt || '-' ||rec_c.VQUESTION_HEADER||'</b>');
      FOR rec_q in
          (SELECT q.nquestion_id, q.vquestion FROM tquestions q where q.nquestion_header_id = rec_c.nquestion_header_id order by q.nrow_order)
      LOOP
        htp.p(l_br|| l_br ||'<div align="left">'|| l_tab ||l_que_cnt || '-' ||rec_q.VQUESTION||'</div>'||l_br );
        FOR rec_ans in c_ans LOOP
           htp.p(l_tab||APEX_ITEM.RADIOGROUP(
           l_que_cnt ,rec_ans.nparam_id,null,rec_ans.vparam));
        END LOOP;
        l_que_cnt := l_que_cnt +1;
      END LOOP;
      htp.p(l_br||l_br ||'<div><b>ARA ORTALAMA</b></div>'); 
      FOR rec_ans in c_ans LOOP
           htp.p(l_tab||APEX_ITEM.RADIOGROUP(
           l_que_cnt ,rec_ans.nparam_id,null,rec_ans.vparam
       END LOOP;
       l_que_cnt := l_que_cnt +1;
       l_hea_cnt := l_hea_cnt +1;
    END LOOP;
    htp.p(l_br||l_br ||'<div><b>GENEL ORTALAMA</b></div>'); 
    FOR rec_ans in c_ans LOOP
       htp.p(l_tab||APEX_ITEM.RADIOGROUP(
           l_que_cnt ,rec_ans.nparam_id,null,rec_ans.vparam
    END LOOP;
        :P65_CNT_QUESTIONS := l_que_cnt ;
    END;

    You need to set "Page items to submit" to be "P2_SCHEME_CAT_CODE"
    This pulls the value from the browser and sets it within session state, thereby making it available to your PL/SQL
    Regards,
    Scott
    blog: [url grassroots-oracle.com]grassroots-oracle.com
    twitter: [url twitter.com/swesley_perth]@swesley_perth

  • How to make dynamic search items in a report?

    Hi all,
    I have two questions.
    1. How to make dynamic search (i.e without GO button) field above report to provide dynamic search by words in one field of report query?
    2. How to make similar multiply dynamic search fields on report to provide individual search by selected fields of report with refine capability (i.e any search conditions in different fields must work together as complex WHERE clause)
    Thanks in advance

    hey yuri--
    if i'm understanding your questions correctly, the easiest way to achieve the functionality you're after is to have your query criteria fields submit the page when values are entered/selected. the page should then branch back to itself using the submitted criteria in the query. because you're asking about dynamically adding in your where clause predicates, you should consider using a report region of type "SQL Query (Pl/sql Function Body Returning SQL Query)". that way you can use pl/sql to piece together your query based on the provided criteria.
    so the part of your question i'm not sure of is when your page should submit itself ("without a GO button" as you said). for your first question, it seems to be a simple matter of javascript. you want users to be able to enter search criteria into a field and have that criteria be using in the report. to facilitate that we have a few self-submitting item types such as "SelectList with Submit" and "Text Field (always submits page when Enter pressed)". for your second question, it seems that you should have a Go button for the user to indicate he's done entering in his query criteria. anyhow, that's up to you, i suppose. hopefully this response will give you the concepts you need to implement this as you'd like.
    regards,
    raj
    ps-after re-reading your post, i now realize there's a chance that you wanted users to not have to submit the page at all when filtering their result sets. if that's the case, you'd have to use javascript for that cumbersome feat. google would be a good place to go for that code.

  • Render items prior to a main render

    Hey sorry but couldn't think of a better way to title this.  First off thanks for all your help in the past.  I am slowly learning but you guys have always given me good direction and great advise.
    I was wondering what do you do in the case of using items created in AE within another AE project?
    I created an animation which will be placed multiple times on a ribbon sized project.  I notice that all of my renders of the ribbon always hangs up around the same frames.
    What are best practices when using projects within projects?
    thanks again for your help.

    Would you use one asset file and resize in the composition or would you make a second asset file already resize and then use that on a composition.   Example would be a logo splash initially created at 1080 but is needed now for a lo-res reason. 
    I presume you're talking about creating a Standard-Definition version, using High-Definition footage.  Don't worry about a render time hit with that workflow -- it's fine.
    Now, If you were using 4K footage in an SD comp over and over again, doing such a thing might be helpful.  Downscaling is more for things like a 20,000 x 20,000 still in an SD comp, and you have no plans to use the Ken-Burns-style zoom-in treatment.  It's helpful in that instance.

  • ADF Pivot table - determining aggregation type based on dynamic value items

    Hi,
    I am trying to build a pivot table in ADF. The data-value rendered (bold section below) produces multiple data items dynamically.
    <pivotTableDataMap>
            <columns>
              <item value="Name" label="Name"/>
              <data aggregateDuplicates="true" defaultAggregateType="SUM">
               <item value="Value" label="__NO_LABEL"/>
              </data>
            </columns>
    </pivotTableDataMap>
    Since, all these data item(s) are rendered dynamically and based their names, the aggregation could be SUM/AVERAGE etc...
    Looking at the Pivot documentation, it says that I can use the 'aggregateType' property of the <item> element to override the 'defaultAggregateType' defined at the parent <data> element. Something like -
    <data aggregateDuplicates="true" defaultAggregateType="SUM">
              <item value="Sales"/>
              <item value="Units" aggregateType="AVERAGE"/>
            </data>
    However in my case the <item> are getting populated dynamically, I cannot put the aggregate type using declarative approach.
    Is there any other way where I can define the aggegrate type for this use-case?
    Thanks
    Sachin

    Hi,
    I am trying to build a pivot table in ADF. The data-value rendered (bold section below) produces multiple data items dynamically.
    <pivotTableDataMap>
            <columns>
              <item value="Name" label="Name"/>
              <data aggregateDuplicates="true" defaultAggregateType="SUM">
               <item value="Value" label="__NO_LABEL"/>
              </data>
            </columns>
    </pivotTableDataMap>
    Since, all these data item(s) are rendered dynamically and based their names, the aggregation could be SUM/AVERAGE etc...
    Looking at the Pivot documentation, it says that I can use the 'aggregateType' property of the <item> element to override the 'defaultAggregateType' defined at the parent <data> element. Something like -
    <data aggregateDuplicates="true" defaultAggregateType="SUM">
              <item value="Sales"/>
              <item value="Units" aggregateType="AVERAGE"/>
            </data>
    However in my case the <item> are getting populated dynamically, I cannot put the aggregate type using declarative approach.
    Is there any other way where I can define the aggegrate type for this use-case?
    Thanks
    Sachin

  • Dynamic proposal/ Item proposal in ERP E-commerce

    Hi Gurus,
    I have a requirement where the ECC (6.0) functionality - Dynamic Proposal and Item Proposal list displayed while entering an order (va01) - should also be displayed in E-commerce (5.0) while the customer enters an order.
    I don't think this is a standard fuctionality in E-commerce. Any suggestion on how we can achive this.
    Did any one come accross such are req ....Please let me know.
    Thank You
    Ram

    I have not seen this feature in E-Commerce with ERP.

  • Dynamically creating items

    hi all,
    In Portal 3.0.9 can the items in Content area folder be created dynamically using API's.
    using API's what all components of oracle portal can be created.
    thanks
    Sunil

    The content area APIs are documented in the Portal PDK.
    Regards,
    Jerry

  • Creating Dynamic Text Item

    Hi
    I am creating an application which needs dynamic creation of text item.
    ie., after POST-TEXT-ITEM I want to creat another text box beneath the existing text item.
    Is there any possibilities that we can create the text item by Code.
    Thanks in advance
    Vijendra

    Hi ,
    Take a look at the following:
    Building a dynamic block at run-time
    Regards,
    Simon

Maybe you are looking for

  • Text Along a Path  of Object - Crash

    More often than not when using Adobe Illustrator CS4 on a Network Account or Local Account, and creating Text Along the Path of an Object...in this case a Circle...the Application Unexpectedly Quits. Any Ideas why this has occured? I tried re-install

  • Parallels won't detect windows 8.1 that i just downloaded

    parallels won't detect the windows 8.1 i just downloaded.

  • How to create job to run daily based on form values entered and send mail.

    Hi, In DB we have 3 columns: creation_date, name, approved_or_not. Default for approved_or_not is 'No'. In the application form page suppose I fill in sysdate for creation_date and leave default for approved_or_not and click [create] button. Now a jo

  • ITunes Doesn't Identify iPods Correctly

    I have two iPods, a Mini and a Nano. My original iTunes 6.0.3 install on Windows 2000 Pro correctly recognizes the Mini and Nano as different devices with different names and updates them accordingly. It also properly manages the saved On-The-Go play

  • BADI HRBAS00INFTY for PD Infotypes 1018

    Hello, I'm implementing BADI HRBAS00INFTY to check and modify some fields in infotype 1018 Cost Distribution. I need field PROZT which is not in NEW_INNNN. How and where can I find this field? I can imagine that NEW_INNNN-VDATA could help me, but how