Binder EditField in a table?
Is it possible to have multiple instances of an EditField bearing the same name and are stored in a table? My problem is that I need the user to be able to enter as many times as they need to in a certain area. E.g. I have a product number field, they could enter a serial number, or they could enter the 50. So I want something like
EditField efProductNumber = new EditField ("number of product :","");
Add (efProductNumber);
Add (efProductNumber);
There is other things as a listener to another field of add (efProductNumber) so I would be able to create fields on the fly if needed.
Any ideas?
ZC
Welcome to the forums!
I assume you have some kind of misunderstanding about the "field name" - there is no such thing! There could be a member of class/variable named efProductNumber, but it only that contain a reference to an instance of the EditField class.
What you want to do is probably something like this:
Vector productNumbers = new Vector();
EditField efProductNumber.
The string number;
...
in a loop or a method called at various times somewhere in the code
efProductNumber = new EditField (...);
productNumbers.addElement (efProductNumber);
Add (efProductNumber);
...
Once the user has entered all the codes, it wanted to
for (int i; I)< productnumbers.size();="" ++i)="">
efProductNumber = productNumbers.elementAt (i) (EditField);
number = efProductNumber.getText ();
do something with this number
}
Tags: BlackBerry Developers
Similar Questions
-
Value data named to bind variables of Type table
Hello
I have a display object with a query that has a where clause, clause which use 'en' (e.g. Select projTitle PROJECT where PROJID in: projIds)
'projIds' is a variable of type table of liaison.
I'm moving in that variable binding expects (an array of projIds that can be used by the sql statement), and I did not. I'm calling a method in the bean to support the named child tag data from the action tag in the pageDef file links section.
Can you give me the proper syntax and object Array as this variable binding will accept, please? Maybe I used the wrong NDType? I found a couple of different options, but none that I can make it work.
The page definition file:
< action IterBinding = "ProjPendingApprovalByApproverVO1Iterator" id = "loadPendingApproval".
InstanceName = "SystemAMDataControl.RooProjIdArrayt.ApprovalAM1.ProjPendingApprovalByApproverVO1"
DataControl = "SystemAMDataControl" RequiresUpdateModel = "true" Action = "executeWithParams" >
< NamedData NDName = 'PROJID"NDValue =" #{dashboard.projIdArray} "NDType="oracle.jbo.domain.Array"/ >"
< / action >
Application of VO:
SELECT ProjectEO.PROJ_ID,
ProjUtnDtlEO.UTN_TYPE,
ProjectEO.PROJ_SHORT_DESC,
ProjUtnDtlEO.PROJ_DTL_ID,
ProjectEO.PROJ_OWNER,
VEmployeeInfoEO.FIRST_NAME,
VEmployeeInfoEO.EMPLOYEE_ID,
VEmployeeInfoEO.FIRSTNAMELASTNAME,
VEmployeeInfoEO.LAST_NAME,
VEmployeeInfoEO.LASTNAMEFIRSTNAME,
ProjApprovalDecisionDtlEO.PROJ_APPROVAL_DECISION_DTL_ID,
ProjApproverEO.PROJ_APPROVER_ID,
ProjApproverEO.APPROVER_LEVEL,
ProjApproverEO.APPROVER_NUMBER,
ProjApproverEO.APPROVER_ROLE,
ProjApprovalDecisionDtlEO.COMMENTS,
ProjApprovalDecisionDtlEO.PROJ_APPROVAL_DECISION_ID,
ProjApprovalDecisionDtlEO.LASTUPDATEDBY,
ProjApprovalDecisionDtlEO.APPROVEDDATE,
ProjectEO.SYS_STATUS,
ProjApproverEO.LASTUPDATEDBY AS LASTUPDATEDBY1,
ProjApprovalDecisionDtlEO.PROJ_APPROVAL_TYPE_ID,
ProjStatusLkpEO.STATUS_DESC,
ProjStatusLkpEO.PROJ_STATUS_ID,
ProjectEO.PROJ_CATEGORY_ID,
STRING. APPROVAL_DESC
OF PTS. ProjectEO PROJECT,
PTS. PROJ_UTN_DTL ProjUtnDtlEO,
PTS. V_EMPLOYEE_INFO VEmployeeInfoEO,
PTS. PROJ_APPROVAL_DECISION_DTL ProjApprovalDecisionDtlEO,
PTS. PROJ_APPROVER ProjApproverEO,
PTS. PROJ_STATUS_LKP ProjStatusLkpEO,
PTS. Channel PROJ_APPROVAL_CHAIN_LKP
WHERE ((ProjectEO.PROJ_ID = ProjUtnDtlEO.PROJ_ID (+))
AND (ProjectEO.PROJ_ID = ProjApprovalDecisionDtlEO.PROJ_ID))
AND (ProjectEO.PROJ_ID = ProjApproverEO.PROJ_ID)
AND (ProjectEO.SYS_STATUS = ProjStatusLkpEO.SYS_STATUS)
AND (ProjectEO.PROJ_OWNER = VEmployeeInfoEO.EMPLOYEE_ID)
AND (ProjApprovalDecisionDtlEO.PROJ_APPROVER_ID = ProjApproverEO.PROJ_APPROVER_ID)
and PROJAPPROVEREO. PROJ_APPROVAL_CHAIN_ID = STRING. PROJ_APPROVAL_CHAIN_ID
AND (ProjApprovalDecisionDtlEO.PROJ_APPROVAL_DECISION_ID = 0)
and PROJAPPROVEREO. APPROVER_LEVEL <>2
and PROJAPPROVEREO. PROJ_ID in: PROJID
Thank you!
Please refer to http://www.jobinesh.com/2010/09/using-bind-variable-for-sql-statements.html?m=1 for an example of this.
Timo
-
How to bind selectBooleanCheckbox in DB table
I have selectBooleanCheckbox in table ADF that comes with the base data type of the column NUMBERtable.
The JSF Page Code:
Pagedef file code:<af:selectBooleanCheckbox value="#{row.bindings.PercentFlag.inputValue}" label="#{row.bindings.PercentFlag.label}" id="it7"> </af:selectBooleanCheckbox>
When I try to save this value in the database it throws the error:<button IterBinding="MeasureConditionalFormatVOIterator" id="PercentFlag" DTSupportsMRU="false" StaticList="true"> <AttrNames> <Item Value="PercentFlag"/> </AttrNames> <ValueList> <Item Value="1"/> <Item Value="0"/> </ValueList> </button>
Error: PercentFlag: 'false' must be a signed decimal number.
Could someone let me know how to bind the value 1/0 with db table.
Thank you...
Published by: broke on 9 February 2012 06:10The entity attribute 'PercentFlag', just change the type BigDecimal (or whatever it is at the moment) to Boolean. JDeveloper will automatically change the column type of database in BITS, which allows that the values 0 (false) and 1 (true).
From there, once you drag the PercentFlag (or the entire table) in the data source to a page, JDeveloper will automatically add the column as a SelectBooleanCheckBox.
I also recommend to set the default value for the attribute of the entity to 0 or 1. If the value is null and that the record is loaded on a page and validated, the record is marked as dirty since the SelectBooleanCheckBox knows only 2 values, true (1) or false (0). -
bind an outputFormatter a table binding
I have a page with a table that is bound to a data control. I would like to display a value of a particular column when the row is selected in an outputformatter under the table component.
< table >
< id col = "1" / >
< id col = "2" / >
< table >
< outputformatter bind = column with the id of 1 >
Is it achievable?
Please excuse the pseudocode fast but I hope you get the idea.Hello
Once after you set the value to outputFormatted, you must refresh the component by setting the property partialTriggers to the id of the table.
It can also be done without programming, if you have defined the simple rowSelection property and selectionListener with the default (selectionListener = "#{bindings.
.") collectionModel.makeCurrent}'). Try this:
-Make sure that you set the single rowSelection property and selectionListener to "#{bindings..» collectionModel.makeCurrent}
-Drag and drop the attribute you want to display in the outputFormatter of the data control palette
-Set the af partialTriggers: outputFormatted tag to the id of the tableExample Code:
{code}
..
{code}
Jean Lou -
Update MS SQL for APEX pl/sql - Bind variable/field process table
I created a page APEX that updates a table of linked server sql through the call to a pl/sql process 'submit '.
The anonymous pl/sql block refers to a hidden field on the page titled "P3_RECORD_ID" in the place where it is clause.
The pl/sql block, I invoke is:
Start
commit;
Update "SRSRATINGS".
'Status' value = 'PASS '.
where "Record_ID" =: P3_RECORD_ID;
commit;
end;
This is block if I replace it with a literal numeric value for the variable/hidden bind field: P3_RECORD_ID. However, when I use the link variable: P3_RECORD_ID, I get the following error:
ORA-02070: SRS database. MSSQL does not support the TO_NUMBER in this context
He doesn't seem to understand that P3_RECORD_ID is a reference to the primary key on the form field.
Any help is appreciated.Hello:
Try if edit the pl/sql block below work
declare l_num number := :P3_RECORD_ID; begin commit; update "SRSRATINGS" set "Status" = 'PASS' where "Record_ID" = l_num ; commit; end;
CITY
-
How does binds to the Dimension Tables.
Hi all
One explains how the ROW_WID of the table dimension and the related column in the fact table is filled with the same values in different mapping?
Consider if we want to develop a new fact and dimension tables, how do I apply for the ROW_WID and the join between the fact and dimension.
Thanks in advance.
Concerning
VishwanathHello
Essentially in BI dims applications all are first populated and each dim table has a column of wid row outside the primary key (datasourceid + integration id) combination. If you open a seeded map and you will see this line wid column is filled using a reusable sequence generator transformation. Then every time u run this mapping the Feds line change...
Now go to the facts... as a normal rule in ETL u run the facts after all the dimensions... If you open any map done planting you can observe all the facts has an associated wid the dims, he joined to... so if a fact joins 3 If stump so there will be 3 Feds associated with each dim. The Feds are again filled with a search on the dimension table and line extraction wid bad ID the Sun. If u get wid of the dimension row in the column of wid the fact... Please let me know if you hv questionsRegarding
VINET -
variable binding can be used for the table in an explicit cursor
I have an application that accesses a table on several different servers. I created a ref for the slider cursor variable and a varchar2 variable to define my query. variable I_server is a parameter to my procedure. Is it possible to rewrite the v_query using bind variable for the table/Server? I have included below v_query.
v_query: = "SELECT rp.usr_id, rp.sun_sft_cat, rp.sun_start, rp.sun_hrs," |
"rp.mon_sft_cat, rp.mon_start, rp.mon_hrs, |
"rp.tue_sft_cat, rp.tue_start, rp.tue_hrs, |
"rp.wed_sft_cat, rp.wed_start, rp.wed_hrs, |
"rp.thu_sft_cat, rp.thu_start, rp.thu_hrs, |
"rp.fri_sft_cat, rp.fri_start, rp.fri_hrs, |
"rp.sat_sft_cat, rp.sat_start, rp.sat_hrs, |
"rp.sun_sft, rp.mon_sft, rp.tue_sft, rp.wed_sft, |
"rp.thu_sft, rp.fri_sft, rp.sat_sft, nvl (ei.wip_permanent_sched_seq, 0) ' |
'FROM ' | I_server | "rp, wip_emp_information ei, |
'wes, wip_emp_status_type West wip_emp_status' |
"WHERE rp.usr_id = ei.employee_id' |"
"AND wes.employee_id = ei.employee_id' |"
"AND wes.status_type = west.status_type' |"
"AND west.description =" STOREKEEPER "' |"
"AND wes.effective_date = (SELECT MAX (wes2.effective_date)' |)"
"OF wip_emp_status EMTE.2 |
"WHERE wes2.status_type = wes.status_type' |"
"AND wes2.employee_id = wes.employee_id' |"
(' AND wes2.effective_date < = trunc (SYSDATE))' |
"AND wes.status = rp.wk AND"Y"= 1'; -wk = 1 is the schedule for next week
Rp_sched_cursor OPEN FOR v_query;If your intention is to do this:
v_query := 'SELECT rp.usr_id, rp.sun_sft_cat, rp.sun_start, rp.sun_hrs,' || ' rp.mon_sft_cat, rp.mon_start, rp.mon_hrs,' || ' rp.tue_sft_cat, rp.tue_start, rp.tue_hrs,' || ' rp.wed_sft_cat, rp.wed_start, rp.wed_hrs,' || ' rp.thu_sft_cat, rp.thu_start, rp.thu_hrs,' || ' rp.fri_sft_cat, rp.fri_start, rp.fri_hrs,' || ' rp.sat_sft_cat, rp.sat_start, rp.sat_hrs,' || ' rp.sun_sft, rp.mon_sft, rp.tue_sft, rp.wed_sft,' || ' rp.thu_sft, rp.fri_sft, rp.sat_sft, nvl(ei.wip_permanent_sched_seq, 0)' || ' FROM ' || :b0 || ' rp, wip_emp_information ei,' || --- Note the bindvariable... ' wip_emp_status wes, wip_emp_status_type west ' || ' WHERE rp.usr_id = ei.employee_id' || ' AND wes.employee_id = ei.employee_id' || ' AND wes.status_type = west.status_type' || ' AND west.description = ''WAREHOUSE EMPLOYEE''' || ' AND wes.effective_date = (SELECT MAX(wes2.effective_date)' || ' FROM wip_emp_status wes2' || ' WHERE wes2.status_type = wes.status_type' || ' AND wes2.employee_id = wes.employee_id' || ' AND wes2.effective_date <= trunc(SYSDATE))' || ' AND wes.status = ''Y'' AND rp.wk = 1'; -- wk = 1 is next week's schedule OPEN rp_sched_cursor FOR v_query USING i_server;
So the answer is: no, you can do that.
But then, my question would be: why would you do that?
I guess that you have many "different servers. A cursor on the server will not hurt you. -
Hi all
I have the aggregation of data on my PivotTable set to display totals for all rows and all columns. But they appear exactly like all other cells. To distinguish them clearly, I want to change the color of this entire column and the row that displays totals at the end of something different - say "Grey".
Is it possible to do this?... preferably without binding the bean pivot table,...
DataIsTotal metadata allows you to set a color if dataIsTotal is set to true.
-
[BC] Call a stored procedure taking parameters of table
Hello!
I currently have a request of the OIC that makes thousands of calls per second stored procedure. The stored procedure runs a business logic that I want my client application to stay informed. I want to reduce the cat of the database and instead to call the stored procedure from thousands of times per second, call the procedure (for example) once per second, but with values of one mile.
I used OCIBindArrayOfStruct successfully to perform inserts bulk, where my OCI application executes a () INSERT INTO using the function "iters" and it might be possible to do something similar with the stored procedure, but I want to do something slightly different, because the procedure stored something like this:
* If a specific condition is set, call a secondary stored procedure
* If another special condition is set, insert a row into a table of some
I so wanted to do was to pass a table (or a series of tables) in the stored procedure, then the stored procedure to use optimal methods that are available, such as FORALL, to perform each of the tasks, the more effectively.
So I thought to create a type, such as a TABLE OF VARCHAR2, or a VARRAY and possessing of the parameters for the stored procedure based on this type, something like:
create or replace TYPE 'NTT_VARCHAR2' AS TABLE OF VARCHAR2 (32700);
create or replace FUNCTION bulk_process_values)
p_error_message OUT NOCOPY VARCHAR2,
p_module_context_name OUT NOCOPY VARCHAR2,
p_sql_error OUT NOCOPY VARCHAR2,
p_count in NUMBERS
p_non_array_var_1 IN VARCHAR2,
p_non_array_var_2 IN VARCHAR2,
p_array_var_1 IN NTT_VARCHAR2,
p_array_var_2 IN NTT_VARCHAR2,
p_array_var_3 IN NTT_VARCHAR2
< etc. for all the variables in table >)
RETURN NUMBER
.. .but I am struggling to find an example of how call the procedure "bulk_process_values" stored, and even if I use a TABLE OF VARCHAR2 or a VARRAY as a parameter type.
I searched the Internet and found this: binding table of the structs (OCIBindArrayOfStruct) sample code
- and- but they take different approaches and a bit confused (the second example spoke of OTT).
I think that the first approach is more likely to be the solution I need - but I can't help thinking - it is a bunch of stuff to move if it does not end up significantly improve performance!
My questions are:
* Moves to a call-SP-thousands-of-times-per-second to call-SP-fewer-times-but-with-array-parameters sensitive?
* Should the table or VARRAY, TABLE OF VARCHAR2 parameters or something else?
* Should I use for my case OTT?
Samples I found are both very old - and the second example indicators that the optimal approach evolves with the OCI versions - I'm on 11.2, what is the optimal approach these days?
* < added later > why is there no official useful example?
Thank you very much
Much appreciated. has actually worked, with VARRAY, with a proof of concept. Now I just need to shake a little and then get my PL/SQL for optimal PC experts. I think I was really discouraged by the lack of official documents, with the Community (Paradise) is the only way to get real results.
Thank you JJ.
I intend me to use the binding enforcement of the table and the table and avoid N back and forth, but I do not then get the opportunity to do something clever in the PL/SQL.
In the PL/SQL, there is no logic occurring - I don't call the same SP tons of times, but then I want to be able to use PL/SQL optimizations such as FORALL, BULK COLLECT, reduce the number of validations and others. There is a commit after each SP run, because otherwise the nature of demand means that the application hangs occur; However, there is a way (I think) be smart on the part that is likely to deadlock (making a shape on the Bay First, then applying the updates in the order sorted and then failed to get a blocking theoretically), and then FORALL insert for the second part of the stored procedure.
I guess I may apply the single return, passing a table (to a commit in the SP)-which will reduce back and forth, so gain in performance, but it will not reduce the number of validations that I do - and Oracle said that commits too frequent is not good for performance. I already have code in my framework that does - by making a simple INSERT INTO.
Good to hear that OTT is not explicitly required - and VARRAY resembles the approach to try first.
-
Questions about the reorganization of the rows in the table by drag-and - drop feature
I am referring to the demo: 106. Drag-and-drop the reorganization of the rows of the table in aCorner of Code DF to implement my case.
I am facing some problems:
1. the view object (bound to the table) is read only and it is created directly by very complex SQL queries, without entity objects. When it is run the code: dragRow.removeAndRetain () in the method: DnDAction processDrop (DropEvent dropEvent), it throws the error so that a guest view object is read-only. I want to know if there is another way to delete the moved collection line?
public DnDAction processDrop(DropEvent dropEvent) { ... CollectionModel collectionModel = (CollectionModel) table.getValue(); JUCtrlHierBinding treeBinding = (JUCtrlHierBinding) collectionModel.getWrappedData(); //get access to the ADF iterator binding used by the table and the underlying RowSetIterator. //The RowSetIterator allows us to remove and re-instert the dragged row DCIteratorBinding departmentsIterator = treeBinding.getDCIteratorBinding(); RowSetIterator rsi = departmentsIterator.getRowSetIterator(); int indexOfDropRow= rsi.getRangeIndexOf(dropRow); //get access to the oracle.jbo.Row instance represneting this table row Row dragRow = (ViewRowImpl)table.getRowData(draggedRowKey); //remove dragged row from collection so it can be added back dragRow.removeAndRetain(); rsi.insertRowAtRangeIndex(indexOfDropRow, dragRow); ... }
2. When you click on a button, I need to save the command results in the database using the command update # of each rank. Here it is the handler method for the event of the action (in MB) button.
I want to use RowSetIterator table for encode it from all ranks and update the value # order of each rank. I call a data control method to run sql update. is it ok? any suggestion?
public void processSaveOrder(ActionEvent actionEvent) { CollectionModel collectionModel = (CollectionModel) mytable.getValue(); JUCtrlHierBinding treeBinding = (JUCtrlHierBinding) collectionModel.getWrappedData(); //get access to the ADF iterator binding used by the table and the underlying RowSetIterator. //The RowSetIterator allows us to remove and re-instert the dragged row DCIteratorBinding iterator = treeBinding.getDCIteratorBinding(); RowSetIterator rsi = iterator.getRowSetIterator(); Row row =rsi.first(); System.out.println(0+"="+ row); int i = 1; while(rsi.hasNext()){ row = rsi.next(); System.out.println(i+"="+ row.getKey()); i++; } }
A workaround solution was found:
In ADF 12 c, it can be solved by changing Updatable "Always" in the details tab of each attributes to read-only view object without entity object.
-
Link between ZX tax tables and gl_code_combinations table in R12
Hi all
I am new to Oracle Applications. We are reclassification of EBS 11i to R12.1.3. In this document, ar_vat_tax is old. I know that his replacement is ZX_rates_b table. But in 11i, they are connected using
ar_vat_tax.tax_account_id = gl_code_combinations.code_combination_id
Now I'm not able to find the join between the zx and gl_code_combinations tax tables. Can someone help please how to bind these ZX tax table to gl_code_combinations?
Kind regards
Patricia K.
Solved the problem.
There is a table called ZX_ACCOUNTS. Use the column tax_account_ccid in it. Link ZX_ACCOUNTS. tax_account_entity_id to ZX_RATES_B. tax_rate_id.
Kind regards
Patricia K.
-
The center of the ADF table column data
I use JDeveloper 11.1.1.6
I would like to be able to focus some of the attributes stored for some columns in my table of the ADF. Here are 2 of the columns in my table ADF I tried to center data. For some reason, the data remain justified left. In my skin file I am centering the header values for all columns in all tables. I don't want to do that, but with the row data. For row data, I want to selectively choose the columns that are left centered or justified. Do you have any ideas on what I'm missing.
< af:table value = "#{bindings." Data1.collectionModel}.
var = "row".
lines = ' #{bindings. " Data1.rangeSize}.
emptyText = "#{bindings." Data1.viewable? "{'No data to display.': 'Access Denied.'}".
fetchSize = "#{bindings." Data1.rangeSize}.
rowBandingInterval = '1 '.
Binding = "#{backingBeanScope.backing_ui_pages_DataDispatch_Processing_update." Table"}
ID = "myTable" columnStretching = "last".
rowSelection = "single" displayRow = "selected".
selectedRowKeys = ' #{bindings. " Data1.collectionModel.selectedRow}.
selectionListener = "#{bindings." Data1.collectionModel.makeCurrent} ">"
...........
< af:column sortProperty = "MyId" sortable = "false".
headerText = "#{bindings." Data1.hints.MyID.label}.
ID = "c1" >
< af:outputText value = "#{rank." MyId}"id ="ot10.
inlineStyle = "" text-align: center; "/ >"
< / af:column >
< af:column headerText = "#{bindings." Data1.hints.size.label}.
ID = 'c4' width = "75" >
< af:selectOneChoice value = "#{row.bindings.Size.inputValue} '"
label = "#{row." Bindings.Size.label}.
required = "#{bindings." Data1.hints.size.mandatory}.
shortDesc = "#{bindings." Data1.hints.size.ToolTip}.
ID = "soc3" readOnly = 'true '.
inlineStyle = "" text-align: center; ">"
< f: selectItems value = "#{row.bindings.Size.items} '"
ID = "si3" / >
< / af:selectOneChoice >
< / af:column >
...........
< / af:table >I'm sorry. The attribute align = 'center' is at the level of the spine.
Try this:
Try this:
var = "row".
lines = ' #{bindings. " Data1.rangeSize}.
emptyText = "#{bindings." Data1.viewable? "{'No data to display.': 'Access Denied.'}".
fetchSize = "#{bindings." Data1.rangeSize}.
rowBandingInterval = '1 '.
Binding = "#{backingBeanScope.backing_ui_pages_DataDispatch_Processing_update." Table"}
ID = "myTable" columnStretching = "last".
rowSelection = "single" displayRow = "selected".
selectedRowKeys = ' #{bindings. " Data1.collectionModel.selectedRow}.
selectionListener = "#{bindings." Data1.collectionModel.makeCurrent}">...........
headerText = "#{bindings." Data1.hints.MyID.label}.
ID = "c1" align = "center" >
ID = 'c4' width = "75" align = "center" >
label = "#{row." Bindings.Size.label}.
required = "#{bindings." Data1.hints.size.mandatory}.
shortDesc = "#{bindings." Data1.hints.size.ToolTip}.
ID = "soc3" readOnly = 'true '.
>
ID = "si3" / >
...........
Thank you
Nini -
Duplicate the data in the table
I am designing a form that contains two tables. The user is supposed to enter their data in the first table, and the data copied in the second table (so when they print the form, they have two copies of the same thing while having only to enter data only once).
I created a dynamic with a line infeed table and the value of this line to repeat the row for each data item, the minimum number of 9. In this way, nine lines that appear when the shape makes it and increase it later, it is a simple change in this number. Then, I put all the fields in the table overall data binding and copied the table, setting the second table in read-only.
My problem is, when I enter a value in the first field of data entry, it copies the data to the entire column of the table! I do not understand why it does this, since Adobe automatically renames duplicate fields (ie. row1Item will be row1Item [1] row1Item [2] and so on). I even went so far as to add a script to change the name of the fields:
rownum var = this.parent.instanceIndex + 1;
myIdName = "rowItemInput" + rownum;
But that did not help at all. I still have the same problem.
Any ideas as to what I'm doing wrong?
So, I thought about it.
First of all, the two arrays must be on the first page for ease. Secondly, all subforms (lines/tables, too) should be mentioned separately. Thirdly, the script does not work under initialize - it must be on calculate.
Here's the script I ended up using:
Place on the same page, the Table2.Row2.rowItemInput field.
this.rawValue = xfa.resolveNode("Table1.Row1.rowItemInput").rawValue;
-
I would like to bind data to a table on the condition that one of the child tags has some value.
For example, let's say that my XML file has the following structure:
< tag >
< condition > 1 < / condition >
....
< / tag >
I want to connect only if the condition tag is set to '1'. Does anyone have an idea how this can be done?
Thank you
You must use the SOM predicates in your data binding expression. For example the expression of your entire table with the common parent liaison
Let's say you could put:
$. Table. [tag.condition.value is '1']
Don't forget the '.' (period) after the table since that indicates the parser XFA expect a Boolean value to determine whether to link or not.
If you want more details, please provide more xml and your names/hierarchies of form.
Kyle
-
Is it possible to get the instance of UIComponent from a FacesCtrlRangeBinding?
I work with JDev 10g on an ADF/BC - battery ADF Faces.Hello
You try to shoot UIComponent (display component) of your model (data link) is not possible
FacesCtrlRangeBinding is used for data binding, in this case: table has a component FacesCtrlRangeBinding
Reference doc: http://database.in2p3.fr/doc/oracle/Oracle_Application_Server_10_Release_3/web.1013/b25947/web_tables_forms002.htm
Kind regards
Maybe you are looking for
-
Post Apple DIY Mod Compact keyboard
Hey I'm looking for a compact keyboard for Mac, aka TKL keyboard. It is very rare and very expensive. If I cut my Apple keyboard position. Would this work? The keyboard would still be usable? Hope I do not sound crazy. Thank you!
-
I have an OPPO BDP - 103 Blu - Ray player connected to my LAN via ethernet cable. I also have an airport Time Capsule (APTC) connected by ethernet to my local network cable. In addition to the use of PACT as a backup Time Machine for my MacBook, I h
-
HP Pavilion 15 p000su video card problem
HelloYesterday, I bought a HP Pavilion 15 p000su http://WWW8.HP.com/BG/BG/products/laptops/product-detail.html?OID=7264987#! tab = specifications It says in the description that I have an Ati Radion R7 260 video cardbut when I run DirectX (dxdiag) it
-
Alienware CPU &; GPU Upgrade
The CPU is also extensible on Alienware (mid-2013) 17 (ADMIN NOTE: maintain the label removed by privacy policy >)? (He has a graphics processor Nvidia 860 m 2 GB and an Intel i7-4710mq). Also if, for example, I get the 880 m (I know that other messa
-
Hi all I have a router Cisco 2621XM running IOS version 12.3 (9) I believe, and it is connected to a Cisco's Cataylst 2950 switch. Basically, I have two VLAN dot1q running. I would like to know if the router or switch can run DHCP on my 2nd VLAN only