on 09-15-2008 12:34 PM
Hi @,
I am implementing SVS for a context attribute wiht values like
a = Success
b= Failed
c = Exception
In my view I can see the Succe Fail Exc resp but what will be passed at the backend when the following things are selected a,b, c or Succes Faiuled etc.
Is it better to use own datatype to achive this or go for code based SVS and generate the list
Regards
Hi
After creating a simple type and assigning this simple type to a attribute,
Make sure that the data type of the simple type is same as the data type of the Import parameter of RFC to which you want to pass this SVS value. Then on the Onselect event capture the value of the SVS by making use of getxxx() method and assign it to the Import parameter of the RFC by making use of setxxx() method and then execute the method of the RFC, so that the method of the RFC is executed after assigning.
In the RFC code try to make validations as per your requirement making use of If else statements
a = Success
b= Failed
c = Exception
Thanks & Regards,
Yusuf.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
First ,the fields of the RFC parameters should able to pull the data as
a SUCCESS
b FAILED.....
So after bnding, you would see the SUCCESS, FAILED....)and when you choose, the respective code(a, b, ...) would only be passed to backend...
Anyway it all depend on how the RFC is been created...either for accepting (a, b, c...) or (SUCCESS, FAILED,.....)
Regards,
Narendra..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
if you select Success it will pass " a " like following...
it is better to use own datatype (simple type).
if your simple type looks this
(Description) Success = a (value)
Failed = b
Exception = c
Regards,
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
if you want to pass the selected value to rfc input.
do like this,for example
String value=wdContext.currentContextElement.getDDKey() ;
the above statement will fetch the selected value from the DDKey.
then pass the "value" to rfc input field in onSelect() event of the DDKey.
wdContext.currentRFCElement().setInput(value);
Regards,
ramesh
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.