cancel
Showing results for 
Search instead for 
Did you mean: 

Hyperlinks based on the level

Former Member
0 Kudos

Hi,

My requirement is to display hyperlinks in the particular columns of a table based on the level of the report.For example, my 1st level should have the values of the column "NAME" as hyperlinks.My next level shoould have the values of the column "LOCATION" as the hyperlinks.

Like that, i need to make a particular column values as the hyperlinks based on the level.

I have already created hyperlink for NAME as well as for LOCATION. But based on level it should show the hyperlink only for one column as stated above. But for me it is displayed the hyperlink for both the column irrespective of the levels.

Please guide me how to do it.

Regards,

Padmalatha.K

xxxxxxxxxxxxxxxxxxxxx

Edited by: Armin Reichert on Apr 8, 2008 9:57 AM

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Armin,

Can you please explain in detail? I couldnt get this.

("visible" property of the links to attributes )? Do we have to create a separate attribute and make it as link to url?

Regards,

Padmalatha.K

Former Member
0 Kudos

Context:

Rows (node, 0:n)

- level (int)

- level0LinkVisible (Visibility, calculated=true)

- level1LinkVisible (Visibility, calculated=true)

Data binding:

Table.dataSource = Rows

Level0Link.visible = Rows.level0LinkVisible

Level1Link.visible = Rows.level1LinkVisible


WDVisibility getRowsLevel0LinkVisible(...)
{
  return element.getLevel() == 0 ? WDVisibility.VISIBLE : WDVisibility.NONE;
}

WDVisibility getRowsLevel1LinkVisible(...)
{
  return element.getLevel() == 1 ? WDVisibility.VISIBLE : WDVisibility.NONE;
}

Armin

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi Armin,

My requirement is that i have to make certian column values of a table as hyperlinks.The table displays the data from a bapi.So i cannot create attribute statically.The bapi will contain a field called hotspot. If this filed is active for a particular column, for that column i need to make the values as hyperlinks.

Ex: Values in r/3

fieldname hotspot Levels

Name Active level2(making only the name (not class) as hyperlinkfor 2nd screen)

Age Inactive

Class Active level3(making only the class(not name) as hyperlink for 3rd screen)

From the above example, hyperlink should come in Name and Class field.

In future they might add one more record say fieldname - position, hotspot - active, levels-level3(making position as hyperlink for 3rd screen).

For this also i need to set the hyperlink dynamically.

Hope this is clear.

Regards,

Padmalatha.K

Edited by: padmalatha kontham on Apr 8, 2008 1:17 PM

Edited by: padmalatha kontham on Apr 8, 2008 1:19 PM

Former Member
0 Kudos

Still unclear to me.

- How do you currently create the table structure?

- Do you need different editors per column or just a link that is either visible or hidden?

- Is the context structure created programmatically?

Armin

Former Member
0 Kudos

Hi Armin,

I have to create an hyperlink for the column based on the R/3 values.

Ex: In R/3 which field name has got hotspot active, for that column i need to create the hyperlink.

So I cannot create the attribute statically. Is there any other option?

Regards,

Padmalatha.K

Former Member
0 Kudos

I don't understand what that means. Please elaborate.

Armin

Former Member
0 Kudos

You could bind the "visible" property of the links to attributes under the table data source and set the attribute values to VISIBLE/NONE if the link should be shown/hidden based on the level of the coresponding row.

Armin