Binding an Array to a context
Hi Colleagues,
Could anyone please let me know How to Built an array Dynamically according to some input parameter and How can this array be binded to context.
Thanks & Regards
Swetha
Hi Swetha,
You can either use the way which is described above or use this approach.
1) Create a node in the context named dataNode with 2 attributes. these 2 attribtes will represent the attributes which you wanted to put in the 2 D array. In this case lets say: siteName and siteLink. These are 2 attributes.
2) Use the hashmap instead of array. Please note that I have again used the generics. Use following code:
HashMap<String, String> valueContainer = new HashMap<String, String>();
valueContainer.put("google", "www.google.com");
valueContainer.put("gmail", "www.gmail.com");
3) Create the node elements in the same way:
String siteName=null;
Strinv siteURL=null;
Iterator iter = valueContainer.keySet().iterator();
while (iter.hasNext()) {
key = (String) iter.next();
value = (String) valueContainer.get(key);
IPrivateTestView.IDataNodeElement element=wdContext.createDataNodeElement();
element.setSiteName(siteName);
element.setSiteURL(siteURL);
wdContext.nodeDataNode().addElement(element);
I hope this helps!! Please revert back in case you need any further help!
Thanks and Regards
Pravesh
Similar Messages
-
How to binding an array in javaFx
Hello fellows,
im trying to bind an array in javaFx but is not possible...
i have a problem that, in my point of view, only can be solved with a bind array.
a create some components in the scene dinamicaly and in other component (a button) a have to get this componets in the button function to manipulate them
this components that is dinamicaly created sofer some updates and can be deleted too.
i create an array that i put this components and my button recived this array, coz the array is always null (the inicial status of the array)
becouse of this i need a bindig array...
how can i do that?
or, that is an other solution?
i can get all the components in the scene of only one type (my component created dinamicaly)?Here is example of a simple painter app where array binding is used:
import javafx.stage.*;
import javafx.scene.*;
import javafx.scene.paint.*;
import javafx.scene.input.*;
import javafx.scene.shape.*;
var elements: PathElement[];
Stage {
title: "Simple Painter"
scene: Scene {
content: Group{
content: [
Rectangle{
width: 400
height: 300
fill: Color.WHITE
onMousePressed: function( e: MouseEvent ):Void {
insert MoveTo {x : e.x, y : e.y } into elements;
onMouseDragged: function( e: MouseEvent ):Void {
insert LineTo {x : e.x, y : e.y } into elements;
Path{
stroke: Color.BLUE
elements: bind elements
} -
How to bind the attribute in the context to a dynamic created element?
Hi, experts,
There are some attributes in the node context(ee_node) that contained the attribute named "ANSSA" in the view(test_view) in the WDA for abap. In the method modifyview of the view(there is a transfered parameter that represent the name of "ANSSA")
I want to create a dynamic element(inputfield) in the test_view. The element need bind the context attribute (ANSSA).Through the transfered parameter(para), I only know the name of the attribute binded.
How can I bind the attribute of the context in the following code?
METHOD modifyview .
*importing para type string.
*importing m_view type ref to if_wd_view.
data wd_inputfield type ref to cl_wd_input_field.
create one element automatically in the view.
wd_inputfield = CL_WD_INPUT_FIELD=>NEW_INPUT_FIELD(
view = m_view
id = para
BIND_VALUE = ???
ENDMETHOD.
I don't know how to replace the "???" in the method modifyview? Do you give me some hint for it?
You can reply back to me via e-mail if you think we should discuss this internally at [email protected] or [email protected]
Thanks.
Best regards,
taoHi, Suresh,
Thanks a lot for your help.
The last mail have some errors. Now, I modify my code error. The following is my new code in the wddomodifyview method in the ADDR_AUTO_DISP_VIEW view.
Now, I modify my code. The following is my new code in the wddomodifyview method in the ADDR_AUTO_DISP_VIEW view.
METHOD wddomodifyview .
importing view type ref to if_wd_view.
DATA transparent_container TYPE REF TO cl_wd_transparent_container.
DATA inputfield type ref to cl_wd_input_field.
transparent_container ?= view->get_element( `TRANSPARENT_CONTAINER` ).
transparent_container->set_visible(
EXPORTING
value = if_wdl_core=>visibility_visible ).
wd_this->SET_DYNAMIC_INPUT(
EXPORTING
inputfield_ID = 'ANSSA'
IMPORTING
INPUTFIELD = inputfield
**************The web page will occur error when running the WDA as soon as I write the code.***********
transparent_container->add_child( THE_CHILD = inputfield ).
ENDMETHOD.
The following is the code of the SET_DYNAMIC_INPUT method.
method SET_DYNAMIC_INPUT .
*importing
*INPUTFIELD_ID type STRING
*exporting
*INPUTFIELD type ref to CL_WD_INPUT_FIELD
Data binded_context type string.
concatenate 'ADDR_AUTO_DISP_VIEW.EE_ADDRESS.' INPUTFIELD_ID into binded_context .
inputfield = CL_WD_INPUT_FIELD=>NEW_INPUT_FIELD(
id = inputfield_id
read_only = abap_true
BIND_VALUE = binded_context
endmethod.
When I run the WDA, The web page occuring the error information:
Note
The following error text was processed in the system DEV : Access via 'NULL' object reference not possible.
The error occurred on the application server devserver_DEV_00 and in the work process 0 .
The termination type was: RABAX_STATE
The ABAP call stack was:
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L7STANDARD==============CP
Method: IF_WDR_VIEW_ELEMENT_ADAPTER~SET_CONTENT of program /1WDA/L8STANDARD==============CP
But when I delete the code of the wddomodifyview, and create a inputfield in the layout of the view, and bind the "ANSSA" to the "value" property in the layout, the WDA is running correctly.
Do you give me some hints?
Thanks a million.
Best regards,
tao -
Is is possible to set up a Bind Variable array. If it is possible, how do you do it?
I want to set up an array of flags in one region on the page, and check those flags in another region on the page (report region). Any help is greatly appreciated.
SharonSharon,
I'm confused. You talk about visual elements on a page (array of flags) and then you somehow already know you want to treat this as bind variable array.
Can you describe what you're trying to achieve, and not so much how you want to acheive it?
Joel -
How to get Array values from context
In my jsp page, I have a group of checkboxes, named "checkbox" and each of them has a different value.
<form>
<input type=checkbox name=checkbox value=1>
<input type=checkbox name=checkbox value=2>
After I submit the form, I need to get the checkbox's values from next page's control file, which is a Java file. In the Java file, I use "com.sap.mbs.core.api.Context" class,
String cbString = (String)context.getNodeList().get("checkbox");
but I can only get the value of the first checkbox.
I have tried context.getValue("checkbox", 0), context.getValue("checkbox", 1), context.getValue("checkbox", 2), but all I got is "null".
I beleive the context has the value of the checkbox array. But how to get them out? Thanks a lot!Jo:
You can download MAM application here
ftp://148.87.8.191/server/outgoing/annie/MAM30.war
Source code is in MAM30.src.zip.
Also here is my view file, which may provide some clue:
<?xml version="1.0" encoding="UTF-8"?>
<view screen="/zjsp/zpm_enh_quickPassConf/zQuickPassConf.jsp" controller="ca.cn.sap.mobile.tis.pmenhQuickPassConf.controls.QuickPassConfManagement">
<event name="onLoad">
<forward name="error" component="error" view="ErrorDetail"/>
<forward name="callback" component="zpm_enh_649" view="zPmEnh649Main" />
</event>
<event name="onGoEnh649">
<forward name="default" component="zpm_enh_649" view="zPmEnh649Main" />
<forward name="callback" component="zpm_enh_650" view="zPmEnh650Main"/>
</event>
<event name="onGoProcessRec">
<forward name="default" component="zpm_enh_649" view="zPmEnh649Main" />
<forward name="callback" component="zpm_enh_650" view="zPmEnh650Main"/>
</event>
</view>
Thanks,
Annie -
Bind Dynamic Table To a Context Node
Hello,
I created an internal dynamic Table. I want to show this table in an ALV-Table. So I want to bind it to a context node.
I create the context node attributes by this:
lr_node_info ?= lo_nd_template_exp->get_node_info( ).
*Type of table type and context type have to be the same
LOOP AT lt_plchar INTO ls_plchar.
clear lv_text.
lv_text = ls_plchar-plchar.
TRANSLATE lv_text TO UPPER CASE.
ls_fieldcatalog-fieldname = lv_text.
ls_fieldcatalog-inttype = 'C'.
ls_fieldcatalog-intlen = '10'.
APPEND ls_fieldcatalog TO lt_fieldcatalog.
ls_attribute-name = lv_text.
ls_attribute-type_name = 'CHAR10'.
lr_node_info->add_attribute( EXPORTING attribute_info = ls_attribute ).
ENDLOOP.
So I create a fieldcatalog and the attributes at once.
Then I generate the table with this:
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = lt_fieldcatalog
IMPORTING
ep_table = <fs_data>
EXCEPTIONS
generate_subpool_dir_full = 1
OTHERS = 2 .
IF sy-subrc <> 0.
ENDIF.
* So now points to our dynamic internal table.
ASSIGN <fs_data>->* TO <fs_1>.
* Next step is to create a work area for our dynamic internal table.
CREATE DATA new_line LIKE LINE OF <fs_1>.
* A field-symbol to access that work area
ASSIGN new_line->* TO <new_line>.
Data: copy_table type ref to data.
field-symbols: <copy_table> type standard table.
create data copy_table like table of <new_line>.
assign copy_table->* to <copy_table>.
ok, nice. when i now bind the table to <copy_table> to lo_nd_template_exp it all works fine. But i also want to but the data into the table.
This also works. When I debug, I can see the table filled with the values. But then there's always this error:
Invalid operand type for the MOVE-CORRESPONDING statement.
Ok, I have read, that the types may be not fit. But I don't know why and how i can solve it.
Do you have any ideas?Hi,
I've the same problem: I must create all attribute of my node at run-time and then create alv.
I use the method:
DATA lo_cmp_usage TYPE REF TO if_wd_component_usage.
DATA lo_interfacecontroller TYPE REF TO iwci_salv_wd_table .
lo_cmp_usage = wd_this->wd_cpuse_alv( ).
IF lo_cmp_usage->has_active_component( ) IS INITIAL.
lo_cmp_usage->create_component( ).
ENDIF.
Pass context node to ALV
lo_interfacecontroller = wd_this->wd_cpifc_alv( ).
lo_interfacecontroller->set_data( node_lenght ). " node_lenght is my dynamic node
But I receive this message error:
Invalid operand type for the MOVE-CORRESPONDING statement.
Method: IF_WD_CONTEXT_NODE~GET_STATIC_ATTRIBUTES_TABLE of program CL_WDR_CONTEXT_NODE_VAL=======CP
Method: GET_REF_TO_TABLE of program CL_SALV_WD_DATA_TABLE=========CP
Method: EXECUTE of program CL_SALV_BS_SERVICE_MNGR_TABLE=CP
Method: EXECUTE of program CL_SALV_WD_SERVICE_MANAGER====CP
Method: APPLY_SERVICES of program CL_SALV_BS_RESULT_DATA_TABLE==CP
Method: REFRESH of program CL_SALV_BS_RESULT_DATA_TABLE==CP
Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE_DATA of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_COMP_TABLE_DATA~MAP_FROM_SOURCE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_COMP_TABLE_DATA~UPDATE of program CL_SALV_WD_C_TABLE_V_TABLE====CP
Method: IF_SALV_WD_VIEW~MODIFY of program CL_SALV_WD_C_TABLE_V_TABLE====CP
What can I do??? My node doesn't static attribute....
Thank,
Federica. -
Binding to Array element using BindingUtils
I have an arraycollection that would have (say) 5 elements in it. Then I have a component with a property that would need to bind with one of the elements in the array. Which element does it gets bound to, is determined at runtime by a function. How would I do that in Actionscript? I am stuck using the BindingUtils.....
e.g. I need to bind the dataProvider property of my component to arr[0] for one instance and to arr[4] for another instance.You may not be able to directly set the indexed value.
Try some thing like this.
Add a property that returns the indexed value.
Ex. if you ArrayList objets are of type "String"
int index = 5;
public String getMyValue(){
return w.get[index]
Now your value binding would look something like
#{SessionBean1.myValue}
BTW, if you want to access different index, create another method
public void setIndex(int index){
this.index = index;
- Winston
http://blogs.sun.com/roller/page/winston?catname=Creator -
Binding to array elements via currentRow
I know, I know, this is not really a JSC question but a JSP one, but I will ask anyway!
I have a datatable bound to tableLine[]. One property of tableLine is myArray - which is, surprise suprise, an array. I would like myArray[0] to show up in the first datatable column, myArray[1] in the second, etc. I tried #{currentRow['myArray[0]']}, but it does not work. The alternative would be to have a rather cumbersome mechanism to convert myArray[xx] into myArrayxx properties, but that really does not look good.
Any ideas?
Thanks,
LucaI was hoping someone else knew - I have no clear answer, but can offer a pointer to a value-binding article you might be able to use:
http://java.sun.com/developer/EJTechTips/2004/tt0923.html#1
and chp 18 on Binding Component Values :
http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html
(see diagram 18-8??)
Sorry I don't have more... but hopefully the trick is in there...
v -
How to declare value binding to array list element in a pojo?
I have a POJO called P, that contains an ArrayList member called w.
class P {
private ArrayList w = new ArrayList(5);
w is initied in the class constructor.
The POJO is in the SessionBean and I would like to reference individual
elements in the ArrayList via a value binding like so;
#{SessionBean1.instanceOfP.w[5]}
I'm not sure how to declare the getter/setter for member W in POJO P
so that setter and getter injection work.You may not be able to directly set the indexed value.
Try some thing like this.
Add a property that returns the indexed value.
Ex. if you ArrayList objets are of type "String"
int index = 5;
public String getMyValue(){
return w.get[index]
Now your value binding would look something like
#{SessionBean1.myValue}
BTW, if you want to access different index, create another method
public void setIndex(int index){
this.index = index;
- Winston
http://blogs.sun.com/roller/page/winston?catname=Creator -
Binding an array of integers using OCI for WHERE IN clause
Is it possible to bind lists of integers using OCIBindByPos(), for use with a WHERE IN clause?
In our application, we very often have statements like this:
SELECT ...
WHERE col1 IN (3, 54, 65, 76, 112, 232, 343)where the number of integers in the list is variable.
These lists sometimes can become very large (several thousands of entries); Oracle ADDM then indicates that these statements are hard to parse and recommends to use bind variables instead.
Is is possible to change the statement into something like
SELECT ...
WHERE col1 IN (:1)and to bind the integer list using OCIBindByPos()?
Or is there an even better way to do this? (Please note: the integer list is not the result of a previous SELECT statement, i.e. we cannot use joins or subqueries here.)
Regards
- FrankTurns out it's possible after all, albeit not quite written in the most obvious way.
See Re: Binding collection to right-hand-side of WHERE num_col in (:1) clause? for details. -
How to bind arrays to PL/SQL stored procedure using OCI?
Hi,
We are having problems trying to bind arrays to PL/SQL stored procedure using OCI. Here is the situation:
- We have a stored procedure called "GetVEPFindTasks" with the following interface:
PROCEDURE GetVEPFindTasks (
p_ErrorCode OUT NUMBER,
p_ErrorMsg OUT VARCHAR2,
p_RowCount OUT NUMBER,
p_VEPFindTasks OUT t_VEPFindTaskRecordTable,
p_MaxTask IN NUMBER);
t_VEPFindTaskRecordTable is a record with the following entries:
TYPE t_VEPFindTaskRecord IS RECORD (
RTCID NUMBER,
TransNum NUMBER,
TransTimestamp VARCHAR2(20),
Pathname1 image_data.pathname%TYPE,
Pathname2 image_data.pathname%TYPE,
Pathname3 image_data.pathname%TYPE,
OperatorID operator.id%TYPE);
- Now, we are trying to call the stored procedure from C++ using OCI (in UNIX). The call that we use are: OCIBindByName and OCIBindArrayOfStruct to bind the parameters to the corresponding buffers. We bind all parameters in the interface by name. Now, we do bind the record's individual item by name (RTCID, TransNum, etc.), and not as a record. I don't know if this is going to work. Then, we use the bind handles of the binded record items (only record items such as RTCID, TransNum, and NOT error_code which is not part of the record) to bind the arrays (using OCIBindArrayOfStruct).
All of the parameters that are binded as arrays are OUTPUT parameters. The rest are either INPUT or INPUT/OUTPUT parameters. Now, when we try to execute, OCI returns with an error "Invalid number or types of arguments" (or something to that sort... the number was something like ORA-06550). Please help...
Is there any sample on how to use the OCIBindArrayOfStruct with PL/SQL stored procedures? The sample provided from Oracle is only for a straight SQL statement.
Thank's for all your help.
** Dannil Chan **As you said:
You have to pass in an array for every field and deconstruct/construct the record in the procedure. There is no support for record type or an array of records. Can you give me a example? I'am very urgently need it.
thanks
email: [email protected] -
How to bind a UI element to the context
Hi Experts,
I have a problem binding UI element to the context. In my code i have to create TabStrips dynamically and under this tabstrip number of UI elements would be there. For this i have a code like this..
IWDTransparentContainer theActionContainer =(IWDTransparentContainer)view.getElement("RootUIElementContainer");
IWDTabStrip ts = (IWDTabStrip) view.createElement(IWDTabStrip.class,"TabStrip");
IWDTab tab1 = (IWDTab) view.createElement(IWDTab.class,"Tab1");
IWDInputField in = (IWDInputField) view.createElement(IWDInputField.class,"in");
IWDCaption header1 = (IWDCaption) view.createElement(IWDCaption.class,"Header1");
header1.setText("Tab1");
tab1.setContent(in);
ts.addTab(tab1);
IWDTab tab2 = (IWDTab) view.createElement(IWDTab.class,"Tab2");
IWDInputField in2 = (IWDInputField) view.createElement(IWDInputField.class,"in2");
IWDCaption header2 = (IWDCaption) view.createElement(IWDCaption.class,"Header2");
header2.setText("Tab2");
tab2.setHeader(header2);
ts.addTab(tab2);
theActionContainer.addChild(ts);
<b>when i run this code it is giving following exceptions..</b>
The initial exception that caused the request to fail, was:
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Property 'value' of AbstractInputField with id 'in' in view 'LoginView' must be bound to the context
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.AbstractInputField.getValue(AbstractInputField.java:1260)
at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.InputFieldAdapter.getValue(InputFieldAdapter.java:582)
at com.sap.tc.ur.renderer.ie6.InputFieldRenderer.render(InputFieldRenderer.java:56)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:435)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:134)
... 63 more
com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: Property 'value' of AbstractInputField with id 'in' in view 'LoginView' must be bound to the context
at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.AbstractInputField.getValue(AbstractInputField.java:1260)
at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.InputFieldAdapter.getValue(InputFieldAdapter.java:582)
at com.sap.tc.ur.renderer.ie6.InputFieldRenderer.render(InputFieldRenderer.java:56)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:435)
at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.RenderManager.render(RenderManager.java:134)
at com.sap.tc.ur.renderer.ie6.TabStripRenderer.renderTabStripItemContentFragment(TabStripRenderer.java:1867)
at com.sap.tc.ur.renderer.ie6.TabStripRenderer.renderTabStripFragment(TabStripRenderer.java:838)
From these exceptions what i understood is, i need to bind these UI elements to context.
Can any body tell me how to bind a UI element to the context if I understood the exceptions correct..
Thanks in Advance,
Murthy.HI,
lets say Ctx is your context attribute,
IWDAttributeInfo attrInfo = wdContext.getNodeInfo.getAttribute("Ctx");
then , as per your code,
IWDInputField in = (IWDInputField) view.createElement(IWDInputField.class,"in");
<b>in.bindValue(attrInfo);</b>
if your contex attribute is child of some other node then do like this,
IWDAttributeInfo attrInfo = wdContext.getNodeInfo.getChildNode("SalesOrder",0)getAttribute("Ctx");
//this is when Ctx is child of node SalesOrder, and we are taking Ctx from its 0th element
then ,
IWDInputField in = (IWDInputField) view.createElement(IWDInputField.class,"in");
<b>in.bindValue(attrInfo);</b>
include this in your code ,
let me know if you face any problem
regards
reward points if it helps -
Binding Controller context nodes to two (RFC)models
Hi group,
i have an table, which is based on an BAPI_GET.
This table is editable - and I want to update the data in R/3 with another bapi BAPI_SET.
BAPI_GET and BAPI_SET have the same structure T_DATA as "table".
Unfortunately I cannot bind the elements of the context (which are created from BAPI_GET) to BAPI_SET. Message is:
<b>Invalid model relation. The corresponding model class does not match the model class of the associated parent context node</b>
Any suggestions would be great, thanks alot,
SimonHi Matthias,
thanks very much for this idea.
I'm gonna try that!
Unfortunately my second models isn't executable (not "execute" method). Maybe some idea for that as well?
Thx,
Simon
P.S:
(Another idea would be: creating an additional controller with one context between the "BAPI Controller" (with the two contexts) and the UI to "bundle" the mapping..)
P.P.S:
Sorry Matthias - somehow the rewarding <b>in this particular post</b> doesn'nt work.
If you see another post of mine - just drop in - i'm gonna get you the points, you deserve.
Message was edited by: Simon Prinzleve -
Implementing IN operator with array binding
Is there a way to have an SQL statement with a simple WHERE clause like "WHERE my_col = :p1" or "WHERE my_col IN (:p1)" and bind an array to p1?
My goal is to avoid blowing up of the command text like "WHERE my_col IN (:p1, :p2, :p3 ...)". In my case the array containing the params could contain several hundreds of items, so the where clause may become quite long...
Thanks,
DanielIs there a way to have an SQL statement with a simple
WHERE clause like "WHERE my_col = :p1" or "WHERE
my_col IN (:p1)" and bind an array to p1?
I would also like a solution for this problem.
It is possible to generate very long IN conditions.
There is a limit of 1000 values in the IN list, but that can be handled by OR-ing several IN conditions.
Executing this kind of expression is however terribly slow, so some other solution would be nice.
Thanks -
Context binding with dropdownbykey
Hello,
I am programming my first little application and would like to use the dropdownbyindex or dropdownbykey field.
The programm is writing some data to the database. For this the context of the fields is binded to a context that is based upon the database structure.
Without using the dropdown fields everything is working fine.
When I now want to use the dropdown field I have the "problem" that I think that I should bind the context to node that supplies the options/choices for the dropdown field. But how can I bind this dropdown field to the context that I want to write to the database also? Or can I only bind to the context with the options and have to read the choice and put it in the context to save while saving the record?
Hoping not to write to confused,
MaximilianHi,
Please see the beow link.
[Reg Dropdownbyindex|Reg Dropdownbyindex]
This will give a general idea of Dropdown by Index.
Actually u only need to do this:
1) Bind ur dropdown with a context attribute.
2)Get access to the node_info of the node in which the attribute resides.
3)Populate the dropdown values as shown in the thread.
4) In the OnSelect fn of drop down.
Get vals selected by user and use them ne where.
I hope it helps.
Revert back with issues.
Regards,
Sumit
Maybe you are looking for
-
I have been trying in vain to get purchase details on my iPad. I click on the iTunes button, but it only shows the names of the songs, I click on the App Store icon and it shows apps, but none of these match the charge, there is no email regarding pu
-
ITunes Apple Application Support error on Windows 7 Professional PC HRESULT: 0x80070091
Hello, ITunes suddenly stopped working on my Windows 7 Professional PC. I was initially getting an Error 2 -- and I followed the instructions to uninstall and reinstall iTunes (restarted, updated Windows and ran CCleaner inbetween). After the new ins
-
Hi experts please give me solution for how to calculate the cash discount on vendor line items as per the payment term within 30 days 15% cash discount , if we pay the amount before due date(any day from 1 to 30 days) we will receive the cash discou
-
I'm trying to install a cd application and I keep getting the message 'you do not have permission to use the application FSP OS X' Even after selecting always allow and entering my login details it still won't accept it. Help!!..
-
Various Cloning Ways available in Oracle Apps 12i
Hi All, I wanted to know what are the various type of possible options available working with Oracle Apps 12i with Database 10g. Pl confirm if the following are possible : 1. I am having a PROD Instance and one UAT Instance. I wanted to clone only th