on 05-03-2012 11:34 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
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
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
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
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
User | Count |
---|---|
97 | |
10 | |
10 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.