Table of Regions?

Is it possible to build a table of regions dynamically in OAF?
I have a need to create a generic region that could capture different types of data (some freeform, some single value LOVs, some multi-value LOVs).
A VO would contain information on which types of data need to be captured so I could hide/unhide certain items in the region.
They would then like the screen to build a table of these regions dynamically - based on another LOV on the same page. Once the LOV is selected, it
would determine how many regions need to be build in the table. So they could select a value, and it would tell us to build a table with 6 (or 7, or 8, etc.) regions going
across (along with a single selection row indicator).
They would also like to be able to add multiple rows to this table. So, if they have a table with 6 region columns, they click "Add Another Row" and
another row of 6 regions is added.
As stated above, each of these regions on the row then needs to be rendered one-by-one (hide / show certain fields - could be different for each region in the row).
It would look something like this, where each Element # column/row is a different Region:
RowInd Row# Element1 Element2 Element3
x 1 LOV TextBox Multi-select LOV
2 LOV TextBox Multi-select LOV
From reviewing the Developer's Guide, I don't see if/how this is possible and if it is - what sort of response time we would see in dynamically building the table and rendering each region one-by-one.
Does anyone have any ideas on if this is possible - or any other suggestions on how this could be done?

Nope, this is not supported. The only thing that comes close is called the Auto Repeating Layout. It too repeats a UI layout based on the number of rows in a view object. But you cannot have LOVs inside these repeating layouts, and the amout of dynamism you can have in the UI is limited. In other words, the repeating layouts need to have the same UI hierarchy.

Similar Messages

  • How to get the sum of  a column in a table layout region

    i have page table layout region and i have many rows in that ...i have a column say xyz now i want the sum of all xyz in all rows ...is that possible ..if it is how..????
    please help me out in this issues...so that i can proceed further with my work..im stuck otu here....if the solution r there in the devguide please tell me where it is ..i mean under which section...bcoz it 1400page document...

    If you are mentioning about table/advanced table region you can enable totalling in those regions. Please check the Table / Advanced Table section as appropriate in Chapter 4 of the dev guide.
    If it is not a table / advancedTable then you will have to programmatically total the column value and display it in the appropriate cell.

  • Can't i use temp tables in regions?

    Hi,
    I'm trying to population 3 years fiscal year data in a single row, one for full time and other one for part time employees. So my output should look like this
    Population Fy1_Tot Fy1% Fy2_Tot Fy1% Fy3_Tot Fy3%
    FT 500 50.0 700 70.0 9000 90.0
    PT 500 50.0 300 30.0 1000 10.0
    Each fy1 data represents different month, based on the month I have to populate corresponding Fiscal year and I have take care this.
    I could do this using TEMP table and works well in Toad but not in HTML DB? Can’t I use temp tables in regions?
    Please see the query below
    WITH TEMP AS(
    SELECT INITCAP(FIELD_VALUE) as Population,
    (CASE WHEN D_S_REP.SMC = :P14_MC_FY1 THEN TO_NUMBER(FYT3) END) as Total1,
    (CASE WHEN D_S_REP.SMC = :P14_MC_FY1 THEN FYP3 END) as FY1P,
    (CASE WHEN D_S_REP.SMC = :P14_MC_FY2 THEN TO_NUMBER(FYT2) END) as Total2,
    (CASE WHEN D_S_REP.SMC = :P14_MC_FY2 THEN FYP2 END) as FY2P,
    (CASE WHEN D_S_REP.SMC = :P14_MC_FY3 THEN TO_NUMBER(FYT1) END) as Total3,
    (CASE WHEN D_S_REP.SMC = :P14_MC_FY3 THEN FYP1 END) as FY3P
    FROM D_S_REP
    WHERE FIELD_NAME='POPULATION'
    AND RS_YR LIKE '%'||TRIM(:P14_S_YR) || '%'
    AND D_S_REP.SMC IN (TRIM(:P14_MC_FY1),TRIM(:P14_MC_FY2),TRIM(:P14_MC_FY3))
    AND WP_NAME = TRIM(:P14_WP_NAME)
    AND RDL_NAME LIKE '%'||TRIM(:P14_EMPLOYEES)||'%'
    GROUP BY FIELD_VALUE,D_S_REP.SMC, FYT3,FYP3,FYT2,FYP2,
    FYT1,FYP1)
    SELECT Population, SUM(Total1), SUM(FY1P), SUM(Total2), SUM(FY2P),SUM(Total3), SUM(FY3P) FROM TEMP
    GROUP BY Population
    Any thoughts!!
    Thanks
    CK

    Actually the same query works well, in HTML DB too. it was my fault i placed the query in a wrong region so i was getting error..
    Thanks

  • How to change color of tables and regions in OA Framework pages

    Dear all
    I want to change colour of tables and regions of oracle standard pages.One way to do it is that I can add code for tables and regions CSS definitions in for each page in correspoding CO,which is not feasible since we have large number of COs in standard pages.I heard that oracle has provided some method to change look and feel of the pages.If anybody knows about it ,plz do let me know.
    Thanks in advance
    Bhupendra

    Check personalization guide and read out "Customizing Look-and-Feel (CLAF)" Topic.

  • Validation table for region/sales district/postal code combination

    Hi Folks,
    Is there any validation table for region/sales district/postal code combination? As I am looking for some standard functionality where a user if puts a wrong zip code/ postal code for a specifc city or country while creation of customer master then system should not allow and throws any kind of error or warning message.
    Please let me know if there is somethiong like this.
    I have some failt idea that we have something in standard SAP where we get a pop warning where postal code-country and postal code-city combination does not exist.
    Please let me know the transcation code and table name for that.
    Thanks and cheers,
    Sandy

    Hello,
    I'm not aware of any settings for this which include sales district.  For the rest a few spots to look at:
    -SAP NetWeaver>General Settings-->Set Country-Specific Checks (some controls for postal code per country)
    -SAP NetWeaver>General Settings-->Set Country-Insert Regions (country to region ties)
    ---Flexible Real Estate Management >Address Management>Regional Structure/City File-->Cities (have not worked with this area but you'll see several nodes for dealing with cities here).
    Hope this helps.

  • Apex 4.2.1: Region table layout and pagination

    See https://apex.oracle.com/pls/apex/f?p=57688:2
    Theme 24, table-based layout. Page template = One Level Tabs, Left Sidebar.
    All 4 regions are report regions using the report region and 2-column portlet as the region and report templates respectively.
    Regions 1.1 and 1.2 are supposed to be in the same row in different columns so 1.1 has New Grid=Yes and 1.2 has New Column=Yes. Ditto for 2.1 and 2.2
    1. Trial and error shows that simply changing the Pagination of report region 1.1 from None to Bottom-Right causes the layout to shift such that 1.2 moves to a grid row by itself! What is going on here? Surely a "trivial" change like whether pagination is displayed or not shouldn't cause such a major layout change. Am I missing something?
    2. Regions 2.1 and 2.2 stick together. How can we add some breathing room between them?
    3. If the page template is changed to One Level Tabs, No Sidebar, the behaviour changes. All the regions are rendered in 1 column, ignoring the New Column grid layout setting. Why is this?
    4. In general, with all the layout changes in 4.x, I was under the impression that, when using a HTML Table based page template, simply using the New Grid/New Row/New Column, etc attributes on the Region attributes would be sufficient to build pages with intuitive, declarative layouts with arbitrary "boxes" laid out on the page, regardless of the content/region type. But that doesn't appear to be the case.
    Can some CSS expert (here's looking at you, Paul) please share some insights on how all this works?
    Thanks

    VANJ wrote:
    Can some CSS expert (here's looking at you, Paul) please share some insights on how all this works?Hi Vikas
    Regions 1.1 and 1.2 are supposed to be in the same row in different columns so 1.1 has New Grid=Yes and 1.2 has New Column=Yes. Ditto for 2.1 and 2.2With table-based region layout I'm getting a Column number selector rather than a New Column switch.
    1. Trial and error shows that simply changing the Pagination of report region 1.1 from None to Bottom-Right causes the layout to shift such that 1.2 moves to a grid row by itself! What is going on here? Surely a "trivial" change like whether pagination is displayed or not shouldn't cause such a major layout change. Am I missing something? No abstruse CSS here, just Pagination Sub-template and table-less layouts coming home to roost.
    Unlike the majority of report templates, the 2-column portlet report template doesn't have an outer HTML <tt>table</tt> to act as a container for the engine-generated pagination <tt>tr</tt>. The pagination row is thus treated by the browser as starting a new row in the current open table&mdash;the region layout. Having the pagination <tt>tr</tt> injected into the 2-column portlet source turns it into tag soup. The whole thing spectacularly fails HTML validation.
    I expect the official Oracle line is that 2-column portlet reports are not supposed to use pagination.
    2. Regions 2.1 and 2.2 stick together. How can we add some breathing room between them?Add this rule to the page Inline CSS. This will add some space on the left of all region cells except the first in the row.
    .regionlayout td+td {
      padding-left: 10px;
    3. If the page template is changed to One Level Tabs, No Sidebar, the behaviour changes. All the regions are rendered in 1 column, ignoring the New Column grid layout setting. Why is this?If this is the layout shown in your link above then I'm not reproducing it. Can you upload an export of your app and provide a link to it?

  • How to Total(Sum) of HH:MM (Varchar2) Format in the Table Region Style of OAF

    Hi All.
    I have Requirement to Calculate the Total Duration in OAF Table Style Region.
    Check In
    Check Out
    Total Hours (HH:MM)
    08:50:59
    15:29:56
    6:38
    07::02:18
    17:05:10
    10:02
    08:20:56
    16:28:33
    8:07
    Total
    24:47
    If i Could not Able to Sum of 6:38+10:02+8:07=24:47 Due to VArchar2 as Display.
    If i use Total (True) in Attribute it is through as sum 0.
    Please Help me to Calculate the Duration Sum in OAF Page.
    Regards
    Rama

    Your question is not clear..
    Provide CREATE tABLE and INSERT statements and expected output. Your DB version also.
    What is the data type of the column RUNTIME?
    And what does your calculation " avg((01:29:40+ 07:10:58)/14)" mean - what is the result of this?
    Please read FAQ: {message:id=9360002}

  • How to disable a bean (messageChoice) in a Table region on  a condition?

    Within a Table based region, I have a requirement to disable MessageChoiceBean (Expense Type) based a specific value of expense type.
    This is in iExpense (CreditCardLines page) module. When the user clicks next btn and navigates to CreditCardLines page, BusinessCreditCardLinesVO gets executed. I can loop thru this VO and can check the specific value of Expense Type but I do not know how to get handle of that bean for a given row in VO and disable that particular expense type bean.
    Hope this is clear. Can you please help?
    Thanks,

    Hi,
    When the page is standard, you need to substitute the VO BusinessCreditCardLinesVO, and add a new attribute which will return true or false (according to your condition)
    and assign that to disabled property of the item (like ${oa.XXTTermsAndConditionsPVO1.Accept}).
    Thanks.
    With Regards,
    Kali.
    OSSI.

  • Issue with Query Region with Table

    All,
    I have a Self Service Page , which has got a Query Region and an underlying Table.
    For the table/ Table Actions Region , I am setting the View Instance and View Attribute Programatically
    OATableBean myRequirementsBean =
    (OATableBean)webBean.findChildRecursive("MyReqTable");
    myRequirementsBean.setViewUsageName(voName);
    OAExportBean exportButtonBean =
    (OAExportBean)webBean.findChildRecursive("ExportButton");
    exportButtonBean.setViewUsageName(voName);
    OAWebBean ssWebBean = webBean.findIndexedChildRecursive("RadioSelect") ;
    ((OASingleSelectionBean)ssWebBean).setViewUsageName(voName);
    ((OASingleSelectionBean)ssWebBean).setViewAttributeName("RadioFlag");
    Followed by prepareForRendering call on Table Bean.
    myRequirementsBean.prepareForRendering(pageContext);
    When I render the Page , I can not see the Table Selection and see the Rows in Table alone.But if I navigate to Personalize View Page and come back to parent Page , I can see the Table Action.
    What could be the reason for this behavior? Please advise.
    Thanks
    Joseph George

    what item does RadioSelect refer to ? is it a child of the table bean ?
    Thanks
    Tapash

  • Dynamic action with interactive report region refresh

    Hi!
    I'm using APEX 4.02
    I've got a page with 2 regions.
    Region1 is a (input) form
    Region2 is an interactive report on the same table as region 1
    When entering values on the form I'm trying to dynmically lookup similar records in the table with the interactive report.
    I've made a dynamic action on the change of the form fields which should refresh the interactive report region. I can see this one fires if I add a alert to debug if it fires.
    The dynamic report is based on a query with bind variables pointing to the form fields, for example
    where
    field1 = :P2_FIELD1
    This works great on the page load, so no dynamic action is fired but I can see the rows in the report region are the ones I am looking for.
    But the refresh of the report region is not working, it is never refreshing and/or showing the correct data after a change of the form fields, so it looks like the dynamic action "refresh region" is not working on the interactive report.
    Any ideas why this can go wrong ?
    I would like to solve this using standard dynamic actions and preferrably not via PL/SQL or JS, shoudl be possible if I should believe the documentation... ;)
    Cheers
    Bas
    Edited by: bklerk on 26-apr-2011 3:07

    Hi,
    When you change value to item, I assume you do not set value to session state.
    Use interactive report advanced attributes "Page Items to Submit" , set items session state before report is refreshed.
    http://download.oracle.com/docs/cd/E17556_01/doc/user.40/e15517/app_comp.htm#sthref1235
    Similar post/issue here
    Hide and show region - hides on refresh
    Regards,
    Jari

  • MPCUI metadata driven CustomUI Table is refreshing for every second

    I have a table in my home page when I customized the home page with metadata driven MPCUI.
    My table is getting populated with SQLDataService qrery. when I try to scroll down the table, it is not allowing me to scroll down as for every 1 second the table is getting refreshed.
    Can some tell me how to get rid of this refreshing.
    I am pasting my code here
    <SqlStatements>
    <Sql name="HC_EXA_REPORT"><![CDATA[
    // The actual SQL code is here and do not want to paste the SQL...
    ]]>
    </Sql>
    </SqlStatements>
    <ActivityDefinition>
    <mp:Page id="hcReportsPg" label="Exadata HealthChecks Reports"
    xmlns:mx="http://www.adobe.com/2006/mxml"
    xmlns:mp="http://www.oracle.com/mpcui"
    >
    <mp:services>
    <mp:SQLDataService id="hcReport" queryID="HC_EXA_REPORT" properties="{props('EMIP_BIND_TARGET_GUID',appModel.target.guid)}" />
    </mp:services>
    <mx:VBox width="100%" height="100%">
    <!-- 1st row -->
    <mx:HBox width="100%" height="100%">
    <mp:Region title="Exadata HealthChecks Reports" width="100%" height="100%">
    <mp:Table id="repSummaryTable2" dataProvider="{hcReport}">
    <mp:columns>
    <mx:AdvancedDataGridColumn dataField="Metric"/>
    <mx:AdvancedDataGridColumn dataField="Check name"/>
    <mx:AdvancedDataGridColumn dataField="name"/>
    <mx:AdvancedDataGridColumn dataField="Instance name"/>
    <mx:AdvancedDataGridColumn dataField="Parameter"/>
    <mx:AdvancedDataGridColumn dataField="Status"/>
    <mx:AdvancedDataGridColumn dataField="Outfilepath"/>
    <mx:AdvancedDataGridColumn dataField="Fail Message"/>
    <mx:AdvancedDataGridColumn dataField="Risk Message"/>
    <mx:AdvancedDataGridColumn dataField="Benefit/Impact Message"/>
    <mx:AdvancedDataGridColumn dataField="Recommendation Message"/>
    <mx:AdvancedDataGridColumn dataField="Alert"/>
    <mx:AdvancedDataGridColumn dataField="Collection Timestamp"/>
    <mx:AdvancedDataGridColumn dataField="Exachk Results From"/>
    <mx:AdvancedDataGridColumn dataField="Exachk Results Timestamp"/>
    </mp:columns>
    </mp:Table>
    </mp:Region>
    </mx:HBox>
    </mx:VBox>
    </mp:Page>
    </ActivityDefinition>

    Hi, sorry, I haven't played with MPCUI yet but it we're excited about the capabilities it appears to provide. We'd like to "combine" a lot of our reports and one-offs into OEM so things are better-organized.
    That said... I dug around a bit and thought this might help. Could you add timePeriod & interval to your own c:Table id element (is that the correct term)?
    In the case of the table component, you can specify the metric directly also:
    <c:Table id="processesTable" width="100%" height="100%"
    metricName="CPUProcessesPerf"
    metricColumns="['ProcUser', 'ProcCPU', 'ProcCmd']"
    timePeriod="REALTIME"
    interval="30"
    >
    <c:columns>
    <mx:AdvancedDataGridColumn width="50" dataField="key" />
    <mx:AdvancedDataGridColumn width="100" dataField="ProcUser" />
    <mx:AdvancedDataGridColumn width="80" dataField="ProcCPU" />
    <mx:AdvancedDataGridColumn width="400" dataField="ProcCmd" />
    </c:columns>
    </c:Table>
    Source: http://docs.oracle.com/cd/E24628_01/doc.121/e25161/mgt_ui.htm#CHDEGFBG
    HTHs...
    Edited by: Richard Evans on Dec 29, 2011 1:31 AM - forgot the URL

  • How to get selected record details when single selection is used in a table

    Hi All,
    Inside a query region I have created a table using region wizard,for this table I have added a singleSelection Item. What I want is , on selection of a particular record i want to update or view that record in a new page , for this I have added update and view icons in each row.
    But I am unable to get the particular selected record
    OATableBean tableBean = (OATableBean)webBean.findChildRecursive("ResultTableRN");
    OASingleSelectionBean singleSelection = (OASingleSelectionBean)tableBean.getTableSelection();
    For this singleSelection object I was unable to find any method which will give the value of the view attribute associated with it.
    Anybody any suggestions regarding it ?
    Thanks in advance,
    Anant NImbalkar.

    Hi Anant,
    here is how you have to do it
    1) you need to enable PPR on that Singl selection , by changining the Action type =fireAction.
    2) define the envent , EVENT
    3) define paramters for that event. This is place that gives you handle to the Attribute of VO.
    So you can define paremters such
    Name = PARAM1
    value =${oa.EqxContactPrivEOVO1.ContactPrivilegeId}
    You can define as many paramters as you can for the vo field that u wanted to have.
    Now in the procesformRequest() , all you do it handle the event EVENT and get the parameters
    if ("EVENT".equals(pageContext.getParameter(EVENT_PARAM)))
    String accountid= pageContext.getParameter("PARAM1");
    You can refer developer guide for further details.

  • How to update data in database from different region of the same page

    Hi,
    I have pepared two regions of tabular form based on the same table,each region is selecting different columns of the same table.
    I want to update the values from different regions in the database using single submit button.
    Regards
    Shashi

    I presume that the two regions are working fine with their individual buttons and your issue is how to make them both save with one button.
    Here is how
    a. You will have 2 ApplyMRU and 1 ApplyMRD processes for each of the regions. Right? Lets say you have 2 "Save" (i.e. label=Save) buttons, one has name SUBMIT and the other SAVE ( SUBMIT and SAVE being the requests that will be sent when they are clicked , respectively)
    b. Make the Display condition on one of the buttons 'Never'. Now it won't show when you run the page. Lets say you made SAVE's conditional Display 'Never'
    c. Go and change the condition on all ApplyMRU and ApplyMRD processes from "When Button Pressed" to "Request is contains in Expression1". In Expression1 enter SUBMIT,SAVERegards

  • How do i create 2 fetch proceess for diffrent table  in the same apge

    hi,
    i create page with 2 from region each region assign to different table each region with DML BUTTON( CREATE,DELETE,UPDATE),there 2 Processes after header to fetch row into two region .now when i run page give me error Column t2 not found in table 1 where the 1st fetch rows Processes fetch data for all item in page Regardless of table name so give me error.
    i mean that
    Region one contain table 1 ....with Fetch row process ( to retrieve data into table 1)
    Region Two Contain table 2....with Fetch row process( to retrieve data into table 2)
    when i run page give me error Column t2 not found in table 1 and when test the sql stetmeni in debug mode i found that the process take all item in page so give this error where column t2 found in table 2 not one ..
    my question
    1- there is any way to assign the Fetch process to specific region so the process take all item in these region only.
    2- how can create manual process to fetch row into specific items in page ( i tray these code
    SELECT col1, col2, col3 ....
    INTO :P1_ITEM1, :P1_ITEM, :P1_ITEM...
    FROM table
    WHERE id = :P_id ) but no data retrieve .
    thanks
    Ahmed
    Edited by: Ahmed.F on Nov 27, 2012 5:10 PM

    my question
    1- there is any way to assign the Fetch process to specific region so the process take all item in these region only.
    2- how can create manual process to fetch row into specific items in page ( i tray these code
    SELECT col1, col2, col3 ....
    INTO :P1_ITEM1, :P1_ITEM, :P1_ITEM...
    FROM table
    WHERE id = :P_id ) but no data retrieve .
    I do not think that it is possible to have more than one Automated Row Fetch process in a given page. See the thread:
    ORA-01403: no data found : Unable to fetch row multiple automated row fetch
    On your second question, the manual process should work provided:
    P_ID has a value when the process executes. You can do it this way:
    i. Make this process as a on-load After/Before header process
    ii. Make sure that P_ID page item has value when the process executes (set it from another page or before the pl/sql process executes)

  • How to Add Attachments table

    Hi,
    We have a requirement to show the invoice attachment(s) (i.e. scanned image of invoice) in iProc requisition/PO details page.
    eg. I want to show all the invoice attachments in PO details page (i.e. attachments of all the invoices linked to the PO)
    If anybody worked on adding a new attachments region to OA page, please let me know details about how to do the same or any pointer would be really helpful.
    Rgds,
    -Kamal

    Kamal,
    I understand you want to add a attachments table to a Standard page where you can view the existing attachments,
    Check your page data is coming from an EO Based VO, then it is very easy to get the attachments.
    To check your VO is EO based, goto about this page, and check the VO details.
    You have to add an item of type attachments(there are 3 types table, links, region) with referencing to your EO and its primary key.
    There you can mention the attachments properties also, (read only, delete allowed..etc).
    Let me know if you are not able to achieve the same.
    More details,
    http://apps2fusion.com/apps-training/apps-functional-documents/75-ame-sshr/433-attachments-self-service-oracle-apps
    http://apps2fusion.com/apps-training/apps-functional-documents/75-ame-sshr/434-oa-framework-document-upload-attachments
    Thanks,
    With regards,
    Kali.
    OSSI.

Maybe you are looking for