on 11-07-2008 6:54 AM
Hi All,
I am using dropdown by key to display the values from the RFC. I am able to get the text by,
ISimpleValueSet div = wdThis.wdGetContext().getContext().getModifiableTypeOf ("Header.VH_BUnit").getSVServices().getModifiableSimpleValueSet();
return div.getText(wdContext.currentHeaderElement().getVH_BUnit());
Please say how to get the key ?
Thanks & Regards,
Mugundhan
Hi,
Have you tried the following one.
wdContext().currentHeaderElement.getVH_BUnit();
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thanks for ur reply. wdContext.currentHeaderElement().getVH_BUnit() is returning the value in the dropdown only.
Consider this line..
return div.getText(wdContext.currentHeaderElement().getVH_BUnit() );
More simillarly return div.gettKey(................); is there. What value should be given inside. if i gave wdContext.currentHeaderElement().getVH_BUnit() means, it sowing "Cannot convert from object to String " error.
So i created an object like this,
Object attributevalue = wdContext.currentHeaderElement().getAttributeValue(IPublicReportrtComp.IHeaderElement.VH__B_UNIT);
But this too not accepting..
Thanks & Regards,
Mugundhan
Hi pavel,
It is String. I had solved the problem by creating a new attribute called temp. I copied the contents to that attribute.
In the RFC i was getting the BusinessUnit and the division as value help. In the key field they r sending the BU and in the Text field division. So there was a bit of problem in fetching it.
So i set the data oh VH_BUnit to temp I fetched the text from the temp.
Thank u all for repying....!
Thanks & Regards,
Mugundhan
Hi, kandha mugundhan!
Current key value stored in corresponding context attribute.
Try this way:
String key = wdContext.currentHeaderElement().getVH_BUnit();
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.