cancel
Showing results for 
Search instead for 
Did you mean: 

OrgChart - Box View - i need to add dynamic hyperlink

Former Member
0 Kudos

Dear Experts,

We have one requirement something link this -

We are using NAKISA OrgChart 3.0 SP02 version. CE7.2 with ECC6.0 EHP5.

I need to add one hyperlink in the Box View like Status.

Once i click this hyperlink, i need to open one Webdynpro ABAP application with this user credentials.

Can you please brief idea to me, how i can archive this task.

Best Regards

Dileep P

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Dileep,

I already did this before.

I would sugest to add this link in the details panel. if this is the case you can do this fairly easy by adding  XHTML section in the details panel.

if you still want to do it in the boxes you have to create a custom XSL file in that file write the logic that you want. However, the <a> tag might not work in the flash version. anyway you can give it a try. as an examle look at the namesection.XSL.

once you create the XSL you have to add it in the presentation XML file then refrence it in the detail of the view.

as you are calling a Webdynpro at the end it is just a link so you can include it in anchor tag.

Best regards

Ibrahim 

Former Member
0 Kudos

Dear Ibrahim,

Thanks for your reply,

basically my requirement to populate the hyperlink in Box only.

As you said - we need to create xsl file and then write the code. Then we need to point this to some presentation XML file. Can you please brief about the file paths for XSL and XML files.

I mean Presentation XML - OrgChart\root\.system\application\XML\PresentationResources.xml

XSL means - OrgChart\root\.system\application\Templates_Views\orgchartboxpresentationxsl.xsl

or OrgChart\root\.system\application\Templates\orgchartboxpresentationxsl.xsl.

please suggest.

Best Regards

Dileep P

Former Member
0 Kudos

Hello Dileep,

first you should n't point to the XMLs in the XML folder you should change in the .delta folder and the publish if you need to change.

you should also create a new linkedDetail and add the field that you want to pass to the WDA.

you should also create a new XSL file under the Template folder create your own Custom folder and there create a new file name it for example Customlink.xsl. you can copy the namesection XSL as a start and add the anchor tag.

basicly you do all that in the admin console (only XSl you have to write) you just have to change the linked detail file generated and use your custom XSL instead of the Nakisa standard ones. and thats it

BR

Ibrahim

lukemarson
Active Contributor
0 Kudos

Hi Dileep, Ibrahim,

For the boxes (nodes in Nakisa terminology) you should edit the view template from Templates_Generated, not create a new XSL (unless it is a new view).

This can be found in the detail configuration that is referenced in the view configuration. All view configurations are listed in the orgchart configuration for each orgchart in the OrgChart menu.

Best regards,

Luke

Former Member
0 Kudos

ohh i didn't see that it is Orgchart SP2.

yes you have to change the template genereat.

BR

Ibrahim

Former Member
0 Kudos

Dear Luke,

My Basic requirement is that , I need to populate at least one more option to add to Position Node (Box).

Here Position Name and Person Name it shows as default. As like that i need to add one more option like Personnel ID.  Once this is done - then i will think about hyperlink.

If any possiblity - we have to do this activity in Admin Console.

or We need to do this XML Files changes - If this is the case, can you please provide me the list of what need to chage.

Please understand - i very basic knowleadge in this NAKISA components.

I hope you understand.

Best Regards

Dileep P

lukemarson
Active Contributor
0 Kudos

Hi Dileep,

These changes need to be done in the XML files. The AdminConsole view editor only handles existing fields - new fields cannot be added or removed here. All view templates must be changed manually.

First you need to identify your view to change. Then look in your orgchart configuration file to find then name of the view configuration. For exampel, if it is the Organizastion Structure with positions then you need to look in ..\AppResources\orgchartconfiguration\SAPOrgUnitOrgChart.xml to find the views. Then open the view configuration in ..\AppResources\viewconfiguration\ and find the details configuration referenced there. Then go to the detail configuration in ..\AppResources\detailconfiguration\ and find the view template.

In the view template you need to add a new variable for your new field. If your new field is not in the detail data configuration (also listed in the detail configuration in the <configuration> tag) then you need to add it to the data source and then to the data element configuration used by the detail data configuration and then in the detail data configuration. Then it can be added as a varaible in the template configuration.

Then you must change the template configuration as per your requirement. For this you need to change the flex-display template and/or html-display template depending on whether you use Standard and/or Basic modes.

This can be fairly complex, so I'd definitely advise getting some professional help if you get stuck.

Best regards,

Luke

Former Member
0 Kudos

Dear Luke,

Good Day, i just populated few options into the node. As guided by you.

I need to correct the alignment of the node.

But unfortuneately one option is missing... like (Cap Man) Image in Right - Down Image.

how we would like to archive this? Please suggest.

Thanks a lot for your great help.

Best Regards

Dileep P

lukemarson
Active Contributor
0 Kudos

Hi Dileep,

I'm sorry, but I don't understand your requirement. Can you explain mor what you mean by:

But unfortuneately one option is missing... like (Cap Man) Image in Right - Down Image.

how we would like to archive this?

Best regards,

Luke

Former Member
0 Kudos

Dear Luke,

This image is missing in the Box now - once i added few more parameter.

Once i change the Box size it will display - i am just tring it now.

Please suggest.

Best Reagrds
Dileep P

StephenBurr
Active Contributor
0 Kudos

You can re-size the box size for each view via the AdminConsole.

I think you have just pushed the content down so once re-sized you should be fine.

Also, test your view changes in "Basic mode" (HTML) - do this by changing to Basic Mode in the Settings (cog in top right of the application).

Stephen

lukemarson
Active Contributor
0 Kudos

Hi Stephen,

I don't think you can re-size boxes in the AdminConsole. Even in SP3 this is not possible.

Best regards,

Luke

StephenBurr
Active Contributor
0 Kudos

Shows how often I do it via the AdminConsole

Would mean finding and editing the XML in the viewconfiguration files.

Overall box height and width amended via these 2 variables:



<boxheight><![CDATA[55]]></boxheight>


<boxwidth><![CDATA[255]]></boxwidth>

Stephen

lukemarson
Active Contributor
0 Kudos

Shows how often I do it via the AdminConsole

. I learn most of my AdminConsole stuff by answering questions on here!

@Dileep - it's worth mentioning that the <boxheight> and <boxwidth> changes you make should be made in both the <display> and <print> sections of the view configuration so that the print/export picks up the correct box size.

Best regards,

Luke

Answers (0)