Creating items dynamically
Hi, is there a way to create items in a page dynamically? For example, I have a query that returns n values. I need to show the n values in n different items, but the n items could change for the next query. Is there a way?
Regards,
Jeannine
FOR c1 IN(SELECT rownum, ttexto_opcion, id_item FROM tb_opciones where id_prueba=:p_id_prueba) LOOP
HTP.P(APEX_ITEM.radiogroup(c1.rownum,id_item,1,c1.ttexto_opcion,'name="grouped"));
END LOOP;This might work if not you need to set an html element name attribute (p_attribute) as per http://download-uk.oracle.com/docs/cd/B31036_01/doc/appdev.22/b28550/api.htm#CHDGCJCG
APEX_ITEM.RADIOGROUP(
p_idx IN NUMBER,
p_value IN VARCHAR2 DEFAULT,
p_selected_value IN VARCHAR2 DEFAULT,
p_display IN VARCHAR2 DEFAULT,
p_attributes IN VARCHAR2 DEFAULT,
p_onblur IN VARCHAR2 DEFAULT,
p_onchange IN VARCHAR2 DEFAULT,
p_onfocus IN VARCHAR2 DEFAULT,)
RETURN VARCHAR2;
Similar Messages
-
Can we create items dynamically in forms 6i??
Dear All,
Is it possible to create items,i.e. Text items,display items etc. dynamically?
Suppose I select Table name EMP,then it must get all columns from database and place it on form.Now I change table name from EMP to DEPT,now it should get all columns for dept table and place it on same form removing all EMP table colums.I should not have to call another form,i.e. it should be strictly done through single form.
Thanks in advanceYou can make a form with 10 or more items (depends on the maximum number of the columns you have) and place them in a non base table block. Then you populate the block with a cursor and if you press a button you can populate the same block with another cursor making visible only the columns you need.
Hope it helps you,
Fabrizio -
Can we create items dynamically or at run time?
Hello expert,
can we create some item dynamically at some button click?
Thanks
yashyash_08031983 wrote:
Hello expert,
can we create some item dynamically at some button click?Hello, yash
You can not create items at run time. But you can manage them at run time by setting Visible property programatically.
Hope this helps..
Hamid -
Creating Region & Items Dynamically based on SQL Result
Hi,
I need to create regions dynamically during runtime based on SQL.
So the number of regions and title will depends on the SQL result.
I came accross the PLSQL Dynamic Content region type. I searched in the internet, I could not find a matching example.
I looked at the APEX book, it mentions about 'Creating a Matrix of Fields Programmatically' but It's not very descriptive and it's using www_flow_api which i couldn't find documentation about it.
So I am turning into this forum for help.
Can you guys guide me to dynamically create region in a page?
for e.g
If my sql returns 5 records, I need to create 5 regions. Each region will contain a dynamically created tabular form as well depending on another SQL (from table function).
Please let me know if I am not being clear about my question.
Thanks a lot in advance.hello,
I have the following SQL statement in my region.
SELECT APEX_ITEM.DISPLAY_AND_SAVE(1,rectype) rectype,
APEX_ITEM.DISPLAY_AND_SAVE(2,class_id) class_id,
APEX_ITEM.DISPLAY_AND_SAVE(3,attribute_id) attribute_id,
decode(rectype,1,'<p style="font-size:17px;color:white;background-color:#383838">'||title||'</p>',
2,'<p><b><i><big>'||title||'</b></i></big></p>',
3,replace(title,chr(13)||chr(10),'</br>'),
apex_item.textarea(4,title,5,200)) title,
decode(rectype,1,'<p style="font-size:17px;color:white;background-color:#383838">'||review1st||'</p>',
2,apex_item.text(5,review1st,3,3),
3,APEX_ITEM.SELECT_LIST_FROM_LOV(5,review1st,'ARTIST_RANK',null,'NO'),
apex_item.hidden(5,review1st)) review1st,
decode(rectype,1,'<p style="font-size:17px;color:white;background-color:#383838">'||review2nd||'</p>',
2,apex_item.text(6,review2nd,3,3),
3,APEX_ITEM.SELECT_LIST_FROM_LOV(6,review2nd,'ARTIST_RANK',null,'NO'),
apex_item.hidden(6,review2nd)) review2nd
FROM TABLE (pkg_artist_review.f_artist_review (:P21_ARTIST_SEQ, :P21_ARTIST_DISCIPLINE,:P21_REVIEW_YEAR))as you can see I use DECODE because I need to do HTML formatting on the value and create ITEM according to the value of 'rectype'
decode(rectype,1,'<p style="font-size:17px;color:white;background-color:#383838">'||title||'</p>',
2,'<p><b><i><big>'||title||'</b></i></big></p>',
3,replace(title,chr(13)||chr(10),'</br>'),
apex_item.textarea(4,title,5,200)) title, so the report result would look like
rectype title
[display f01] title
[display f01] title
[display f01] title
[display f01] [text area f04]My question is :
I would think my array list f01 and f04 will have different number of values inside.
f01 will have 4 value, whereas f04 will only have 1.
I tried to use
decode(rectype,1,APEX_ITEM.DISPLAY_AND_SAVE(4,'<p style="font-size:17px;color:white;background-color:#383838">'||title||'</p>'),
2,APEX_ITEM.DISPLAY_AND_SAVE(4,'<p><b><i><big>'||title||'</b></i></big></p>'),
3,APEX_ITEM.DISPLAY_AND_SAVE(4,replace(title,chr(13)||chr(10),'</br>')),
apex_item.textarea(4,title,5,200)) title, I only ended up having the HTML code written to the report.
How can I handle such situation?
I need my array list to have the same number of records thus i could just use one index to iterate through the value.
Thanks in advance.
Edited by: joel2 on Mar 18, 2009 3:40 PM -
Create a dynamic attribute for each user
Hi All,
I request you all to let me know how to give an approach to the following requirement.
REQUIREMENT: I have to create a dynamic attribute in UME for each user and the read the attribute on lead selection of a table having list of Users.
On lead selection, the dynamic attribute value should be either true or false. Based on this value the rest of the application specific operations wil be taken care.
If a particular User does not have the dynamic attribute associated to it, then we need to create the same.
Looking forwarrd for your help.
Regards
Dipendra//@@begin javadoc:UMSavePropertiesByNode()
/** Declared method. */
//@@end
public boolean UMSavePropertiesByNode( )
//@@begin UMSavePropertiesByNode()
try {
if (wdContext.currentUserDataElement().getVaIUserMaint().setAttribute("com.sap.security.core.usermanagement", this.getUMPropertyName(null) + ".TableColumns", this.getPropertiesByNode())) {
wdContext.currentUserDataElement().getVaIUserMaint().save();
wdContext.currentUserDataElement().getVaIUserMaint().commit();
msg.reportMessage(IMessageTableUtilsComponent.UMPROPERTY__SAVE__FIELDS__SUCCESS, null, false);
} catch (UMException ex) {
wdContext.currentUserDataElement().getVaIUserMaint().rollback();
msg.reportMessage(IMessageTableUtilsComponent.UMPROPERTY__SAVE__FIELDS__ERROR, null, false);
return false;
return true;
//@@end
//@@begin javadoc:UMLoadFieldsProperties()
/** Declared method. */
//@@end
public petrobras.com.br.classes.FieldsTable UMLoadFieldsProperties( petrobras.com.br.classes.FieldsTable fields )
//@@begin UMLoadFieldsProperties()
String properties[] = wdContext.currentUserDataElement().getVaIUserMaint().getAttribute("com.sap.security.core.usermanagement", this.getUMPropertyName(null) + ".TableColumns");
if (Compare.getLenght(properties) > 0) {
//msg.reportWarning("[UMLoadFieldsProperties]: properties.length = " + properties.length);
for (int i = 0; i < properties.length; i++) {
int attrPos = Integer.parseInt(properties<i>.substring(properties<i>.indexOf("(") + 1, properties<i>.indexOf(")")));
String attrName = (String) properties<i>.substring(properties<i>.indexOf(")") + 1, properties<i>.indexOf("="));
int attrValue = Integer.parseInt(properties<i>.substring(properties<i>.indexOf("=") + 1, properties<i>.indexOf(";")));
Field item = fields.getField(attrName);
if (item != null) {
item.setPosition(attrPos);
item.setVisibility(WDVisibility.valueOf(attrValue));
fields.removeFieldByName(attrName);
fields.addField(item);
return fields;
//@@end
regards,
Angelo -
How to create a dynamic mapping of columnar at the Runtime using ADF or JSF
How to create a dynamic GUI at the Runtime using ADF or JSF in JDeveloper 11g.
What I am trying to build is to allow the user to map one column to another at the run time.
Say the column A has rows 1 to 10, and column B has rows 1 to 15.
1. Allow the user to map rows of the two tables
2. An dhte rows of the two columns are dynamically generated at the run time.
Any help wil be appreciated.....
ThnaksOracle supports feedback form metalink was; "What you exactly want to approach is not possible in Htmldb"
I can guess that it is not
exactly possible since I looked at the forums and documantation etc. but
couldnt find anything similar than this link; "http://www.oracle.com/technology/products/database/htmldb/howtos/tabular_form.h
t". But this is a very common need and I thought that there must be at least a workaround?
How can I talk or write to Html Db development team about this since any ideas, this is very important item in a critial project?
I will be able to satisfy the need in a functional way if I could make the
select lists in the tabular form dynamic with the noz_id;
SELECT vozellik "Ãzellik",
htmldb_item.select_list_from_query(2, t2.nozellik_deger, 'select vdeger
a,vdeger b from tozellik_deger where noz_id = 10') "Select List",
htmldb_item.text(3, NULL, t2.vcihaz_oz_deger) "Free Text"
FROM vcihaz_grup_ozellik t1, tcihaz_oz t2
WHERE t1.noz_id = t2.noz_id
AND t2.ncihaz_id = 191
AND t1.ngrup_id = 5
But what I exactly need i something like this dynamic query;
SELECT
vozellik "Ãzellik",
CASE
WHEN (t2.nozellik_deger IS NULL AND t2.vcihaz_oz_deger IS NOT NULL) THEN
'HTMLDB_ITEM.freetext(' || rownum || ', NULL) ' || vozellik
WHEN (t2.nozellik_deger IS NOT NULL AND t2.vcihaz_oz_deger IS NULL) THEN
'HTMLDB_ITEM.select_list_from_query(' || rownum ||
', NULL, ''select vdeger a,vdeger b from tozellik_deger where noz_id = ' ||
t1.noz_id || ''' ) ' || vozellik
END AS "DeÄer"
FROM vcihaz_grup_ozellik t1, tcihaz_oz t2
WHERE t1.noz_id = t2.noz_id
AND t2.ncihaz_id = 191
AND t1.ngrup_id = 5
Thank you very much,
Best regards.
H.Tonguc -
Hi everyone, this should be so easy, yet I am stuck.
I have a form region with an item P110_VESSEL_ID. This item is a select list. It is based on the query:
select distinct v.vessel_name, v.vessel_id
from vessels vessels v, frequent_fishermen ff
where ff.dea_permit_id = :G_PERMIT_ID and
ff:vessel_id = v.vessel_id
UNION
select v.vessel_name, v.vessel_id
from apex_collections a, vessels v
where collection_name = 'SUPVES_COLLECTION' and
a.c002 = v.vessel_id
If the user decides against the values in the select list query, they may opt to SELECT ALL VALUES. This SELECT ALL VALUES is a POST ELEMENT TEXT on P110_VESSEL_ID.
<a id="popVessels" href="#"><font color=blue>Select from ALL Vessels</a>
This all works fine.
The issue is that when the user selects a vessel name = 'UNKNOWN' and it's corresponding vessel_id value, I would like an ALERT to appear indicating that they should double check that the vessel is UNKNOWN and not that the is no vessel.
I created a dynamic action
event= change
select type = item
item = P110_VESSEL_ID
True ACtion #1 is the ALERT.
I currently have no other logic, but cannot even get this to work. Any thoughts. I have also tried the SELECT TYPE = jQuery Selector = select[name='P110_VESSEL_ID'] but that does not work either (though I am not certain if the value should be P110_VESSEL_ID or the static name of VESSEL_ID).
Any help is appreciated.
ps. the page is not submitted when the vessel is changed. There is other data that needs to be entered both in this region and others and many validations run when submit, so the submit would not be an option.
thanks again,
KarenKarenH,
KarenH wrote:
I created a dynamic action
event= change
select type = item
item = P110_VESSEL_ID
True ACtion #1 is the ALERT.
This should work. Sometimes I've see where there is other javascript on the page that may have some errors and is causing the dynamic action code to not be executed. Use your favorite browser script console to try and determine if this may be the case.
--Jeff
P.S. Your jQuery selector can be: select#P110_VESSEL_ID -
Can I create a dynamic number of inputs during runtime?
Can I create a dynamic number of inputs during runtime?
Oracle 11g
Application Express 4.0.2.00.06
Here is my problem:
We have a table that holds metadata about files (hardcopy or softcopy files).
We expect we may need more columns in the table at some point and don't want to modify the table or the application.
So in order to do this I would like to create:
A table called TBL_FILE with the columns:
TBL_FILE_ID NUMBER (This will be the primary key)
TBL_FILE_NAME VARCHAR2(1000) (This will be the name of the file)
A second table will be called TBL_FILE_META with the columns:
TBL_META_ID NUMBER (This will be the primary key)
TBL_FILE_ID NUMBER (This will be the forign key to the file table)
TBL_META_COLUMN VARCHAR2(30) (This is what the column name would be if it existed in TBL_FILE)
TBL_META_VALUE VARCHAR2(1000) (This is the value that record and the 'would be' column)
So a person can have as much meta data on the file with out having to add columns to the table.
The problem is how can I allow users to add as much data as they like with out having to re develop the page.
Other things to note is that we would like this to be on a single page.
I know how to add we can create multi-row inserts by using a SQL Query (updateable report),
however the TBL_META_VALUE column in the TBL_FILE_META will sometimes be a select list and other times a text box or number field.
So I don't see now a SQL Query (updateable report) would work for this and I can't create an array of page items at run time can I?
Any idea's how I could accomplish this? Is there a better way of doing this?
Also is there a term or a name for what I am doing by creating these 'virtual' columns in another table?
I found this method when looking at Oracles Workflow tables.Welcome to the Oracle Forums !
>
Can I create a dynamic number of inputs during runtime?
Oracle 11g
Application Express 4.0.2.00.06
Here is my problem:
We have a table that holds metadata about files (hardcopy or softcopy files).
We expect we may need more columns in the table at some point and don't want to modify the table or the application.
So in order to do this I would like to create:
A table called TBL_FILE with the columns:
TBL_FILE_ID NUMBER (This will be the primary key)
TBL_FILE_NAME VARCHAR2(1000) (This will be the name of the file)
A second table will be called TBL_FILE_META with the columns:
TBL_META_ID NUMBER (This will be the primary key)
TBL_FILE_ID NUMBER (This will be the forign key to the file table)
TBL_META_COLUMN VARCHAR2(30) (This is what the column name would be if it existed in TBL_FILE)
TBL_META_VALUE VARCHAR2(1000) (This is the value that record and the 'would be' column)
So a person can have as much meta data on the file with out having to add columns to the table.
The problem is how can I allow users to add as much data as they like with out having to re develop the page.
>
Creating Page Items dynamically is not available. You will have to create excess items and hide/show , etc. But you cannot change the Item Type. All in all, too many limitations in this approach.
>
Other things to note is that we would like this to be on a single page.
>
The 100 item limit will hit you if you go with extra item on page. With Tabular Form that should not be a limitation, unless you are exceeding the 50 item limit of APEX_APPLICATION.G_Fnn items, and the 60 column limitation of Report region with "Use Generic Column Names (parse query at runtime only)" of Dynamic region.
>
I know how to add we can create multi-row inserts by using a SQL Query (updateable report),
however the TBL_META_VALUE column in the TBL_FILE_META will sometimes be a select list and other times a text box or number field.
>
If the type if item is variable it only means you need a way to store the item type. Meta Data of the Meta Data.
>
So I don't see now a SQL Query (updateable report) would work for this and I can't create an array of page items at run time can I?
>
Yes, you can do it. Updatable report/ Tabular Form query can be constructed from the Meta Data using PL/SQL Function Returning SQL Query . It will be a bit of coding in PL/SQL where you use the Meta Data and the Meta Data of the Meta Data to piece together your SELECT with the right APEX_ITEMs. It might have a performance penalty associated with it, but will not be a serious degradation.
>
Any idea's how I could accomplish this? Is there a better way of doing this?
Also is there a term or a name for what I am doing by creating these 'virtual' columns in another table?
I found this method when looking at Oracles Workflow tables.
>
I guess that is just a good TNF. It is the Master-Detail Design Pattern, that sound more modern ? ;)
Regards, -
Creating two dynamic action in a page
Hi,
I have created two dynamic action under the page_items(p6_item,p6_item1 both are hidden).
First dynamic action under p6_item is action1.
properties of action Event-> Change
Selection_Type->Item
Item-> p6_Item
Value-> show
(When i Hit the button viewall it should only display region1)
True Action:
sequence->10, Action->Show, Fire->Yes, Selection Type->region, Region->region1
sequence->20, Action->Hide, Fire->Yes, Selection Type->region, Region->region2
False action:
sequence->30, Action->Hide, Fire->Yes, Selection Type->region, Region->region1
Second Dynamic action under p6_item1 is action2
properties of action Event-> Change
Selection_Type->Item
Item-> p6_Item1
Value-> show
(When i Hit the button Search it should only display region2)
True Action:
sequence->10, Action->Show, Fire->Yes, Selection Type->region, Region->region2
sequence->20, Action->Hide, Fire->Yes, Selection Type->region, Region->region1
False action:
sequence->30, Action->Hide, Fire->Yes, Selection Type->region, Region->region2
Here the problem is, when i hit the viewall button it is not displaying region1 instead region2 is displayin region1 is hidden. when i hit the Search Button it is displaying region2 , region1 is hidden. Foer me, When viewall hitted region1 should only display not region2. When Search button hitted region2 should only display not region1.Hi little foot,
I have created my page in apex.oracle.com. you can clearly see the issue which i am having in the page.
Workspace:listen
Username: [email protected]
Password:apex
Application Name: 45665
Page: page1 -
How to create a dynamic page from a parameter table at runtime?
I have a table which has the information of item names,types,default values of an input form. Is it possible to create a dynamic page at runtime from these parameters? I saw htmldb_item but what i need is something like attaching athis input form to a dynamic sql with htmldb_item.
Thank youOracle supports feedback form metalink was; "What you exactly want to approach is not possible in Htmldb"
I can guess that it is not
exactly possible since I looked at the forums and documantation etc. but
couldnt find anything similar than this link; "http://www.oracle.com/technology/products/database/htmldb/howtos/tabular_form.h
t". But this is a very common need and I thought that there must be at least a workaround?
How can I talk or write to Html Db development team about this since any ideas, this is very important item in a critial project?
I will be able to satisfy the need in a functional way if I could make the
select lists in the tabular form dynamic with the noz_id;
SELECT vozellik "Ãzellik",
htmldb_item.select_list_from_query(2, t2.nozellik_deger, 'select vdeger
a,vdeger b from tozellik_deger where noz_id = 10') "Select List",
htmldb_item.text(3, NULL, t2.vcihaz_oz_deger) "Free Text"
FROM vcihaz_grup_ozellik t1, tcihaz_oz t2
WHERE t1.noz_id = t2.noz_id
AND t2.ncihaz_id = 191
AND t1.ngrup_id = 5
But what I exactly need i something like this dynamic query;
SELECT
vozellik "Ãzellik",
CASE
WHEN (t2.nozellik_deger IS NULL AND t2.vcihaz_oz_deger IS NOT NULL) THEN
'HTMLDB_ITEM.freetext(' || rownum || ', NULL) ' || vozellik
WHEN (t2.nozellik_deger IS NOT NULL AND t2.vcihaz_oz_deger IS NULL) THEN
'HTMLDB_ITEM.select_list_from_query(' || rownum ||
', NULL, ''select vdeger a,vdeger b from tozellik_deger where noz_id = ' ||
t1.noz_id || ''' ) ' || vozellik
END AS "DeÄer"
FROM vcihaz_grup_ozellik t1, tcihaz_oz t2
WHERE t1.noz_id = t2.noz_id
AND t2.ncihaz_id = 191
AND t1.ngrup_id = 5
Thank you very much,
Best regards.
H.Tonguc -
How to create a dynamic table region with dynamic VO in processFormRequest
Hi All,
I have a requirement to create a dynamic table region with a dynamic VO.
I need this because at runtime only the user will select the table name. So based on that table name, i have to create a table region to display the records.
I already created a dynamic VO. Could anyone share the code for dynamic table region creation.
Thanks in Advance.
Thanks and Regards,
Myvizhi
Edited by: Myvizhi Selvi on May 20, 2013 6:21 PMHi,
You can use following sample code to create advance table columns dynamically with colum groups as well.
It assumes that you have already created advance table with ID EmpTblRN.
Below code returns column heading dynamically and if you keep your VO column names and attributes
same in all the cases (COL1, COL2.....) then you can easily use a loop to create advance table columns.
It is attaching VO attributes to OAMessageStyledText bean in the last.
Hope it helps.
OAAdvancedTableBean advTable = (OAAdvancedTableBean)webBean.findChildRecursive("EmpTblRN");
Serializable [] param = {currentWindowSeq.toString()};
Datum[] colHeadingArray = (Datum[])am.invokeMethod("getColumnHeading", param);
String oldGrpName = null;
String newGrpName = null;
OAColumnGroupBean columnGroup = null;
DictionaryData columnFormat = new DictionaryData();
columnFormat.put(WIDTH_KEY, "4%");
for (int i = 0; i < colHeadingArray.length; i++)
try
oracle.sql.STRUCT os = (oracle.sql.STRUCT)colHeadingArray;
Object[] colHeadAttr = os.getAttributes();
newGrpName = (String)colHeadAttr[0];
if(newGrpName!=null)
if(!newGrpName.equals(oldGrpName))
// Create a column group, create the set the column header,
// and add the column group under the advanced table
columnGroup = (OAColumnGroupBean)createWebBean(pageContext, COLUMN_GROUP_BEAN, null, "ColGroup"+i);
OASortableHeaderBean columnGroupHeader = (OASortableHeaderBean)createWebBean(pageContext, SORTABLE_HEADER_BEAN, null, "ColGroupHeader"+i);
columnGroupHeader.setText(newGrpName);
// Retrieve from message dictionary
columnGroup.setColumnHeader(columnGroupHeader);
advTable.addIndexedChild(columnGroup);
oldGrpName = newGrpName;
// Create a column, create the set the column header, and add the column
// under the column group
OAColumnBean column1 = (OAColumnBean)createWebBean(pageContext, COLUMN_BEAN, null, "Column"+i);
OASortableHeaderBean column1Header = (OASortableHeaderBean)createWebBean(pageContext, SORTABLE_HEADER_BEAN, null, "Column1Header"+i);
column1Header.setText(colHeadAttr[1].toString());
column1.setColumnHeader(column1Header);
column1.setColumnFormat(columnFormat);
columnGroup.addIndexedChild(column1);
// Create the actual leaf item under the first column
OAMessageStyledTextBean leaf1 = (OAMessageStyledTextBean)createWebBean(pageContext, MESSAGE_STYLED_TEXT_BEAN, null, "Leaf"+i);
//OARawTextBean leaf1 = (OARawTextBean)createWebBean(pageContext, RAW_TEXT_BEAN, null, "Leaf"+i);
leaf1.setViewAttributeName("Week"+(i+1));
String destination = "OA.jsp?page=/xxqc/oracle/apps/per/leaveadvance/webui/EmployeeLeaveDetailPG&personId={@PersonId}";
destination = destination + "&startDate="+colHeadAttr[1].toString()+"-"+(String)colHeadAttr[0];
destination = destination + "&addBreadCrumb=Y&retainAM=Y";
leaf1.setDestination(destination);
OADataBoundValueViewObject cssjob = new OADataBoundValueViewObject(leaf1,"Color"+(i+1));
//leaf1.setAttributeValue(oracle.cabo.ui.UIConstants.STYLE_CLASS_ATTR, cssjob);
leaf1.setAttributeValue(UIConstants.RENDERED_ATTR, cssjob);
column1.addIndexedChild(leaf1);
catch(Exception e)
System.out.println("e"+e); -
Set label of an item dynamically through pl/sql function
Hi ,
How Can I get the label of an item dynamically through a pl/sql function.
I have a table that stores the label name for these items.
I want to set the label for the item based on the value in my table ?
Is it possible ?
any ideas ?
Thanks in advance,
Dippy
Edited by: Dippy on Feb 23, 2010 11:02 AM
Edited by: Dippy on Feb 23, 2010 11:02 AMIf I understand you correctly, you are using a standard report region, but want to dynamically name the column headers? The only way I've been able to get this to work is to create hidden items for each column header, calculate the value you want for each item, then reference the item in the column header using &item_X. for the column header name.
The problem is that at this point, APEX doesn't allow for dynamic column naming unless you want to do everything yourself using a PL/SQL process that builds the report table manually. I've done that for certain complex reporting tools.
I understand it's tedious to create all the column header items; I have one report that has over 72 items used in this way. It was a pain, but it got the job done. -
Unable to create item under a region
Hi All,
I wanted to create a item under one region in a seeded page. When I went to Personalize page, next to the region where I need to create the item, I don't see the "Create Item" button. But for the other regions I see that button. Any ideas what could be done to enable this?
Regards,
PradeepHi,
It could be a dynamic region itself or a region extended.
If its a dynamic region, you will have to do Controller extension to extend it.
-Idris -
Create multiple dynamic control for each splistitem
Hi ,
I using SharePoint 2010 , in that am creating a custom visual webpart, to show in my home page.
In that i need to show my custom list's listitems such as 'ID' and 'Title' as dynamically label controls in my page.
When ever a new item added in that list , it will dynamically created labels and displyed in my webpart as last item.
can any one help me ?
regards,
RKHello,
You can't directly get newly created item in webpart but you can use CAML query to get item from list and show in webpart. Use OrderBy in query to get item in ascending or descending order. Here is ref code:
using(SPSite Site = new SPSite(SPContext.Current.Site.Url))
Using(SPWeb Web = Site.OpenWeb())
SPList list = web.Lists["ListName"];
SPQuery query=new SPQuery ();
query.Query = "<OrderBy><FieldRef Name='ID' Ascending='FALSE'/></OrderBy>";
query.RowLimit = 1;//get only single item if you want all items then remove this line
SPListItemCollection items = list.GetItems(query);
if(items.Count > 0)
foreach(SPListItem item in items)
string ID = Convert.Tostring(item["ID"]);
string Title = Convert.Tostring(item["Title"]);
Later bind this code with gridview.
http://programmingshare-thienle.blogspot.sg/2012/02/using-spquery-to-return-sharepoint-list.html
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Steps to create LOV dynamically
Hello All,
I want to create LOV dynamically.in my Oracle Forms 6I
Is there any code which can create LOV dynamically using coding.
I can create Record group dynamically. but I want to create LOV dynamically not from object browser of Form Builder by pressing Add LOV option.
Kindly help me.
Thanks
HARSH SHAHForms does not have a Built-in for dynamically creating an LOV; these objects can only be created in the Forms Builder during design time. You can, as numerous people have tried to demonstrate, change the Record Group an LOV uses dynamically. Unless you are changing the Column Mapping Properties of the LOV, using different Record Groups to supply the data for an LOV should work for you. If you need to change the Column Mapping Properties, then you will need to create multiple LOV objects with the different mapping you need and then assign the LOV to your Item dynamically.
Hope this helps,
Craig...
Maybe you are looking for
-
How to resize a jpg/gif file to a fix size using jimi ?
I have search from the web and didn't find any example on doing this. Can any one give example on how to resize a jpg image. let say 120x240 to a fixed size 40x40 ? thank you
-
Dreamweaver CS4 - Dynamic Form Question
Hello you all. I've been tasked with developing a form for my company that allows a user to add as many contacts into a form field as they like, i.e., they would enter a contact first and last name and then click on a "+" sign or button to add anoth
-
Good Reader question ...
I have an issue with not being able to bring back auto disapearing menu . ( Ipad ios 4.2.1 Good Reader v 3.2.0 ) I have a simple sheet PDF document and when I tap a link in the PDF document it shows desired html file - but ..... menu disapears after
-
SCOM network discovery & port stitching with Cisco UCS & Hyper-V and/or VMware
Before we have our network engineers reconfigure their infrastructure to allow network discovery from SCOM, does anyone know whether or not SCOM will include the virtual switches (Hyper-V or VMware), the UCS fabric interconnects, and the hosted virtu
-
Listener.log not been updated
I am on linux x86 OEL4. using 10.2.0.3. My listener.log is not been updated since the 30 May. Weird. /opt/oracle/app/oracle/product/10.2.0/db_1/network/log [oracle@juk-prod log]$ ll total 4203424 -rw-r--r-- 1 oracle oinstall 4294967428 May 30 21:49 l