on 08-07-2006 9:36 AM
I have 24 hours diagram (table width = 24, height = my Resources count), i talk about html version, i can click on some interval, and register current interval time, this interval changed color. One word: its a simple, interactive gant diagram, how can i do this in web Dynpro, if Dynpro standart component can not be clicked(or can be?), and IWDTable change color for Cell?
Hi,
As Valery Silaev has already mentioned, WD supports Gantt Charts via BusinessGraphics UI elements. For details, see <a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/a8/1cd93f5e0f9015e10000000a155106/frameset.htm">here</a>.
As for interactivity, you can look for the category APIs, Series APIs and Point APIs in SAP help.
Regards,
Satyajit.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nikita,
First of all, WD supports Gannt chart itself via IWDBusinessGraphics component ("interactive enough" so you may track clicks and "customizable enough" so you may change colors ;).
The same is possible with IWDTable in NW04s -- use CellVariant-s with every column (one variant -> one color) and IWDLinkToAction inside cell variant to handle clicks and switch variants (it's impossible to track clicks in any area, though).
Valery Silaev
EPAM Systems
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Nikita,
It will be hard to re-implement user interface "as is", but something similar is possible:
Imaging you have 1x1 pixels image of certain color. Initially Link2Action has only text ("<NONE>" or "<EMPTY>") and no image. With the very first click you reset text to nothing and instead set image source.
You are assigning via context binding height to some fixed value (say "18px") and width to some value that reflects allocated time: initially (1 hour) it is 10px; every additional click adds 10 to width; so 4 hours is 40px width. Clicking that causes "overflow" (depending on use case 8,12 or 24 hours) will reset Link2Action to "<EMPTY>" text and no image...
Thoughts?
Valery Silaev
EPAM Systems
P.S. Sadly, WD has not slider control, and any other controls like ProgressIndicator or ValueComparision are static...
Nikita,
Actually, you have to consider amount of postbacks with every click on Link2Action. Overall performance will be awfull.
In my opinion it is better to have regular table with input fields to enter hours and some read-only view that displays Gannt chart using IWDBusinessGraphics.
All that jazzy JavaScript stuff behaves quite badly in WD...
Valery Silaev
EPAM Systems
Nikita,
Doch! Gantt is clickable. At least, data series. But typically this is used to display detailed information rather then alter series data...
Valery Silaev
EPAM Systems
Nikita,
Sure, if you implement "see detailed" behavior yourself.
Don't get me wrong: it is possible to alter series data from action handler. However, given amount of interactivity necessary for your use case, it would be very slow process to user -- every click is interrupted with clinet-server postback.
VS
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.