on 09-25-2007 4:13 AM
Hii all
In WDP Image, I want to store ICON dynamically. So I am storing the icon path (as a string )at context attributes at run time. Then I am mapping that attributes to the source. My code is like
If <<condition>>
[context]-[attributs] = ~Icon/CheckedOk
Else
[context]-[attributs] = ~Icon/Empty
Endif.
But the path is not working properly. so the image is not coming in position. Can you tell me , whats the problem ?? IF you have any idea how to store path or change the icon image dynamically or any code example please post here.
Regards
Satra
Hi Satrajit,
To which property are you binding this string? I had problems with some elements. I currently bind the imageSource property of a Caption UI Element to the attribute in context structure. It works fine.
Also, make usre you have created at least one element for teh respective context node in your context where you can store these values for the attributes.
Regards,
Neha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Neha,
thanks for your reply, In My case I am taking a Attributes String type. Then I am storing the path at that attributes. Then I am binding that attributes imageSource property of a Iamge.. And the path is ~Icon/CheckedOk. But I am not getting that image.
Is there any problem in my procedure ?
Regards
Satra
Hi ,
I guess what you have done is right. I guess u forgot to do set attribute or bind the changed structure to the context.
Please bind your Image with an element in the context node and then in your code write as follows.
get the context node
lo_node = wd_context->get_child_node( 'NODE' ).
if a > b.
l-check = '~Icon/CheckedOk'.
else
l_check = ~Icon/Empty
endif.
lo_node->set_attribute( name = 'CHECK' value = l_check ).
Hope this helps.
regards,Ismail.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
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.