XPages view control link manipulation - xpages

I have a view control and at least one column has the option "Display as link" set. The link is generated manually. What I want to achieve is to add a url parameter which is added to a view column link. The usual link would like this
"http://host/path/file.nsf/$$OpenDominoDocument.xsp?databaseName=server!!path/file.nsf&documentId=03871DD0B47F88D4C12576AB00623137&action=editDocument"
What I would like to have is:
"http://host/path/file.nsf/$$OpenDominoDocument.xsp?databaseName=server!!path/file.nsf&documentId=03871DD0B47F88D4C12576AB00623137&action=editDocument?param1=value1&param2=value2&etc..."
There must be a (presumably easy) way to achieve this - unfortunately I don't know how...
Any help or hint is appreciated.
Many thanks in advance.
Michael

Follow the below steps:
1. go to All Properties of view Column which displays column values as link.
2. Compute the PageUrl with the below Code.
var col:com.ibm.xsp.component.xp.XspViewColumn = getComponent("viewColumn1");
col.getDocumentUrl()+"&param1=value1"

Related

How to give the link dynamically for compare products in Opencart 2.x?

I have made a custom bar in header section in opencart 2.1.0.1. Shown in the figure Header custom bar.
Where I want to give a link to view compared products.
I know that "$compare" is the variable to get the path. I wanted to access "$compare" but it is giving the following error
"Undefined variable compare in ..../header.tpl in line 68"
How to give the link dynamically for compare products ?
Suggestion and Solutions are appreciated.
Thank you.
Hi for this you need to modify header controller as well
$data['compare'] = $this->url->link('product/compare');
Put this line to your header controller than $compare will work on header.tpl

Delete and modify fields shown in "drupalsite/node/XXX"

I need to delete/modify some fields shown in the full view of a node. This is when you go to "drupalsite/node/XXX".
(They only will be shown depending of the value of another field of the same node).
I have used nodeapi > view but I am not able to make it work. What am I missing? How should I do it?
Thanks in advance :)
You can use function template_preprocess_node(&$variables) in {your_theme}/template.php

Liferay Hook customization

I wanted to write a hook which will place a new field in new document type along with present ones(textbox, selectbox etc.)."I need That new field which works like dropdown box under Metadatasets as screen shot shows .and also i need to get values from database whenever i select that field in the available fields if we choose "select" it show option1 ,option2 ,option3 .."
Can anyone know which js and jsp files should I edit.? Please help
https://www.liferay.com/documentation/liferay-portal/6.1/user-guide/-/ai/lp-6-1-ugen04-document-types-and-metadata-sets-0
i was unable to upload image,Can u plz see the above link.in this page figure 4.6 is the image.
Since Document Types are part of Document library so you can check-out: \portal-web\docroot\html\portlet\document_library\edit_file_entry_type.jsp. and other related pages which might be accessed from this page.
Hope this is what you want, again I would suggest to please pay heed to my comments to your question.

Rad grid custom filtering

How can I activate custom filtering for my radgrid?(I googled but I didn't get any proper response regarding this)
I have a property like AllowCustomSorting but I don't have any property regarding filtering.
Can any one provide the way how to implement custom filtering?
If possbile give me a sample page then I will understand.
Thanks in advance.
All you need to know about filtering:
http://www.telerik.com/help/aspnet-ajax/grid-basic-filtering.html
I usually do my filtering/sorting within my stored procedures as that brings huge speed benefits when working with larger tables.
I'm aware this is a fairly old question now but this link should help you:
Note that it has a sample project at the bottom of the page.
The property you are looking for is AllowFilteringByColumn="True"
This page has a sample using a dropdown and a custom filter.

Is there a way to have a column in SharePoint which has multiple links?

I currently have a normal SharePoint list with about 15 columns or so. I need one of the columns to have a list of links. I know SharePoint lets you have 1 link and it also lets you have multiple lines of text... So I thought it would be there as an option, but no such luck. Anyone knows a solution for this? I wasn't able to find any info online, which doesn't happen often. I guess I wasn't looking for the right keywords? If anyone can point me into the right direction, it would be great!
Thanks
-V
Maybe a multiplelines text field, and configured it to be Enhaced Rich Text enable. It would allow you to insert your links as in a HTML page (it would be the same as to use a CEWQ)
We have a custom filed CALLed Document Link Field that enabled you to link multiple documents to a list item, maybe this is what yuo are looking for. In any case either you need a custom field, or use a multiple lines of text
Infowise Document Link Field

Resources