cancel
Showing results for 
Search instead for 
Did you mean: 

IWDTable

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

http://www.NetWeaverTeam.com

Former Member
0 Kudos

I try to insert link to action, but if i need registration 4 hours length, i can do this in html within border = 4 length, and if i click on this interval, i call jscript someWindow(ViewRegister), or someWindow(register) in case if this interval doesnt registered yet

Former Member
0 Kudos

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

http://www.NetWeaverTeam.com

P.S. Sadly, WD has not slider control, and any other controls like ProgressIndicator or ValueComparision are static...

Former Member
0 Kudos

What is the best way to solve my problem in this case?

Former Member
0 Kudos

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

http://www.NetWeaverTeam.com

Former Member
0 Kudos

Last Question:

Gantt can't be clickable or etc?

Former Member
0 Kudos

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

http://www.NetWeaverTeam.com

Former Member
0 Kudos

Hi,

Any BusinessGraphics UI element is "clickable". The event is called "onAction".

Regards,

Satyajit.

Former Member
0 Kudos

Other Words - i can click on some intervall, and See More Detailed Information?

Former Member
0 Kudos

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

Former Member
0 Kudos

Thanks, i try to search some examples, to see how to make Gantt clickable and will be very grateful if you help me with