on 04-09-2005 1:06 AM
Hi,
I have created a model from a WSDL file and try to create a form view with a couple of input fields. One of the input parameters I got from the WSDL of Java Native Type BigInteger and I cannot create an input field for it.
How can I solve this?
Eugen.
hi Eugen,
You cant directly bind a BigInteger to Input Field.
Instead declare a seperate value attribute of type long and map it to the input field.
You can bind the long value and in the code
typecast it to BigInteger by using BigInteger.valueOf(long) and setting the model attribute value...
I guess this wil solve your problem
Regards
Bharathwaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
im facing somewhat similar problem
i hv created a webservice in XI 3.0. Here im accessing a RFC through XI 3.0.
Now, using java proxy generation facility of XI 3.0 i hv generated the code for tht web service. Then in web dynpro i developed a j2ee application using the generated code. my requirement begins now....... i hv my frontend as web dynpro n through this frontend i want to access that application so tht all the data present in tht j2ee application gets populated in a table on the corresponding view in web dynpro. i tried to use the web service model and written some code but still im unable to successfully do it. i get a message in the integration server of XI 3.0 but the table doesnt get populated. This is the case when my web service doesnt need any input. in other case where my web service needs input, i take the value of input field from the model node, but when i run the application the input fields are deactivated, please help me out in this problem.
im creating a data link between model and component
The component context has the following hierarchy
Request_GetWbsDetailsInput_getWbsDetailsInput
getWbsDetailsInput
selected_wbs
project
wbs
Response
Result
e_wbs_element_table
now im creating a data link between view n component
my first view takes the input so its context contains
Request_GetWbsDetailsInput_getWbsDetailsInput
getWbsDetailsInput
selected_wbs
project
wbs
the table is in my second view. its context is
Request_GetWbsDetailsInput_getWbsdetailsInput
Response
Result
e_wbs_element_table
now i specify the value of input fields from the first view context as project and wbs
In the wdInit() of component i write the following code
Request_GetWbsDetailsInput_getWbsDetailsInput wbs = new Request_GetWbsDetailsInput_getWbsDetailsInput();
wdContext.nodeRequest_GetWbsDetailsInput_getWbsDetailsInput().bind(wbs);
try
{
wbs.execute();
wdThis.wdGetContext().currentE_WBS_ELEMENT_TABLEElement().setWBS_ELEMENT_DESCRIPTION("abc");
}
catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}
wdContext.nodeResponse().invalidate();
The proper reply:
im creating a data link between model and component
The component context has the following hierarchy
Request_GetWbsDetailsInput_getWbsDetailsInput
-
getWbsDetailsInput
-
selected_wbs
-
project
-
wbs
-
Response
-
Result
-
e_wbs_element_table
now im creating a data link between view n component
my first view takes the input so its context contains
Request_GetWbsDetailsInput_getWbsDetailsInput
-
getWbsDetailsInput
-
selected_wbs
-
project
-
wbs
the table is in my second view. its context is
Request_GetWbsDetailsInput_getWbsdetailsInput
-
Response
-
Result
-
e_wbs_element_table
now i specify the value of input fields from the first view context as project and wbs
In the wdInit() of component i write the following code
Request_GetWbsDetailsInput_getWbsDetailsInput wbs = new Request_GetWbsDetailsInput_getWbsDetailsInput();
wdContext.nodeRequest_GetWbsDetailsInput_getWbsDetailsInput().bind(wbs);
try
{
wbs.execute();
wdThis.wdGetContext().currentE_WBS_ELEMENT_TABLEElement().setWBS_ELEMENT_DESCRIPTION("abc");
}
catch (Exception e) {
// TODO: handle exception
e.printStackTrace();
}
wdContext.nodeResponse().invalidate();
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.