on 12-08-2010 9:59 AM
Hello Experts,
Can you please provide me the useful solutions for the below mentioned issues.
I created a Webdynpro with one view .Kept the adobe interactive form on the view by binding the structure with all my fields to the data source. And one webservice is linked to this form by keeping one submit button on the form. Iam sending the entire data filled on the form to the webservice as importing structure which is binded to the DATA SOURCE of the View in the Webdynpro. Now my questions are,
1.Among these fields,i have a list box (can select multiple values from the list). Iam pasing the values to this list box from the Webdynpro with out changing the TYPE of field in the structure. But all the selected values of list box should be available in the web service. how is it possile?. The importing structure contains the TYPE of that field as a data element and not a TABLE TYPE.
2. How to make the borders of the field in red color in run time. (like it comes for mandatory fields initially).
Thanks in advance.
Regards,
Ram.
Hi Ram,
1) There are multiple ways to get this done. You can concatenate the selected items with some special charecter using javascript and assign to a hidden field. Then map this hidden field to the web service parameter. From R/3 you can seperate the concatenated values to get the selected values in the list.
2) To set the field border color at runtime, follow these steps.
Select the field
Go to Object Pallete -> Border -> Edges
Select 'Edit Together'
Select 'Solid' from the next dropdown
Go to Javascript editor and select the corresponding event
Enter the code - InputField.borderColor = "254,30,18";
Hope this will help you.
Thanks & Regards,
Sanoosh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sanoosh,
Thanks for ur inputs.
But now, my doubt is "How to know the list of values selected in the list box to concatenate using scripting in th Adobe form it self? "
And also, regarding border color. The suggested logic is not changing the color of the border of the field. Instead it is giving additional border in specified color. But, Is it not possible to change the actual border color instead of adding additional borders with other color ?.
Regards,
Ram
Hi,
But now, my doubt is "How to know the list of values selected in the list box to concatenate using scripting in th Adobe form it self? "
For list box which is multiselect, when you say this.rawValue you get a arraylist, i believe separated by "\n" which mean newline on the form and separated by # when it reaches to SAP.
And also, regarding border color. The suggested logic is not changing the color of the border of the field. Instead it is giving additional border in specified color. But, Is it not possible to change the actual border color instead of adding additional borders with other color
You feel like aditional border because the field is an input type which has emboss effect to look, you can change the appearance of the file from palletes/windos>object>field-->appearance dropdown, just say it to none and alter the type field in Value tab from user entered optional to readonly you will see the difference.
Let me know if this suffice you.
Cheers,
Sai
Hi Ram,
You don't have to do separate coding in javascript to concatenate the selected values of the listbox. Just map the listbox rawValue to web service request parameter. In R/3 you will get all the selected values separated with '#'.
For border, remove the sunken box appearance from the object pallete and try the following javascript code.
inputField.border.edge.thickness = "0.025in";;
inputField.borderColor = "255,0,0";
Thanks & Regards,
Sanoosh
Hello Ram,
Its always better to have one TableType parameter in WebService to pass the table values instead of concatenating and sending it to R/3.
As suggested, try that border option also.
Regards
Nizamudeen SM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
How to make the borders of the field in red color in run time. (like it comes for mandatory fields initially).
It's a simple JS code and you can easily find it using Search as this has been answered here earlier.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.