on 07-04-2006 2:30 PM
Hi,
How do i add an icon to a viewswitch line entry
the documentation suggests
'See also Handling Web Icons' but i cannot determine how.
I think i should rephrase the question.
I have a 'ViewSwitch' pattern in my application.
I want to add an ICON that corresponds to the text for each entry.
see for ViewSwitch properties
http://help.sap.com/saphelp_nw04s/helpdata/en/7c/1fae42e0fac911e10000000a1550b0/frameset.htm
The documentation eludes that it may be possible to link an ICON in via the ItemSource dynamically - currently this bound to a context node, my question is how can i maintain the context node and add icons?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Does anybody know how to use this UI element? The property itemSource is required to be bound to a context node. But after this...what do you do?
If you need three view switches, do you create three view switches in your contextual panel? Or is this context node and its elements somehow connected to the number view switches?
Any help ASAP is welcomed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey mate
I think there is a couple of ways to use it from memory, my solution was one view switch under a contextual panel, the view switch was bound to a node in the context, this node has an attribute which supplies the text (for each entry it creates a switch) and another attribute to determine whether or not it is enabled. I used a supply function to populate node at runtime.
Take a look at WDR_TEST_EVENTS ->Template ->Contextual panel, for a simple example.
alternatively you can do a where used on CL_WD_VIEW_SWITCH and you will see different applications.
Hope this helps
Hi Christopher,
>Does anybody know how to use this UI element? The
>property itemSource is required to be bound to a context
>node. But after this...what do you do?
The view switch has as many entries as there are elements in the corresponding context node. Bind itemText to an attribute of this node and provide a different value for each element. Bind the onSelect to an action and switch the tabs inside once a user clicked at a bar. The currently selected bar is the one for which the correspondong context element has a leadSelection.
>If you need three view switches, do you create three
>view switches in your contextual panel? Or is this
>context node and its elements somehow connected to the
>number view switches?
Usually, a single view switch is enough. The number of bars is determined by the number of context elements in the corresponding node. Of course, you could have multiple view switches, but then you need multiple nodes as well.
Best regards,
Thomas
Hi,
I'll update the documentation about the ViewSwitch properties accordingly, for SPS9.
Regards, Heidi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think i should rephrase the question.
I have a 'ViewSwitch' pattern in my application.
I want to add an ICON that corresponds to the item text for each entry.
see the following for the viewswitch properies
http://help.sap.com/saphelp_nw04s/helpdata/en/7c/1fae42e0fac911e10000000a1550b0/frameset.htm
this document suggests it is possible on the ITEM SOURCE - this seems to require a context node only - what do i have to do to add the ICONS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
see http://help.sap.com/saphelp_nw2004s/helpdata/en/ec/bb08428dab5f24e10000000a1550b0/frameset.htm for the different notations.
Regards, Heidi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Jasper,
There is a property called itemIcon. You can specify the name of the icon here (e.g. ICON_DUMMY) or an URL to an image of your choice. There many different notations possible for icons (and URLs in general). The full list can be found inside of the online help.
Best regards,
Thomas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.