Creating HREF Link with "SortOrder"

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Creating HREF Link with "SortOrder"

maxwater
Hi Everyone,

i am pretty new to OFbiz.

Id like to sort my searchresults. it works pretty fine when using it with a

<form> with an input like

 <input type="hidden" name="sortOrder" value="SortProductPrice:LIST_PRICE">


BUT ! i need it as a link like shown below

/keywordsearch/~sortOrder=SortProductPrice:LIST_PRICE/~SEARCH_STRING=TEST/~VIEW_SIZE=${viewSize}/~clearSearch=N</@ofbizUrl>">LINK


Any Idea how i can access the sortorder via a link ?

thx in advance,
Johannes
Reply | Threaded
Open this post in threaded view
|

Re: Creating HREF Link with "SortOrder"

Pfuschi71
maxwater wrote
Id like to sort my searchresults. it works pretty fine when using it with a

<form> with an input like

 <input type="hidden" name="sortOrder" value="SortProductPrice:LIST_PRICE">


BUT ! i need it as a link like shown below

/keywordsearch/~sortOrder=SortProductPrice:LIST_PRICE/~SEARCH_STRING=TEST/~VIEW_SIZE=${viewSize}/~clearSearch=N</@ofbizUrl>">LINK
The following should work:

/keywordsearch?sortOrder=SortProductPrice:LIST_PRICE&SEARCH_STRING=TEST&VIEW_SIZE=${viewSize}&clearSearch=N</@ofbizUrl>">LINK


Greetings
Roger

Reply | Threaded
Open this post in threaded view
|

Re: Creating HREF Link with "SortOrder"

maxwater
In reply to this post by maxwater

maxwater wrote
Hi Everyone,

i am pretty new to OFbiz.

Id like to sort my searchresults. it works pretty fine when using it with a

<form> with an input like

 <input type="hidden" name="sortOrder" value="SortProductPrice:LIST_PRICE">


BUT ! i need it as a link like shown below

/keywordsearch/~sortOrder=SortProductPrice:LIST_PRICE/~SEARCH_STRING=TEST/~VIEW_SIZE=${viewSize}/~clearSearch=N</@ofbizUrl>">LINK


Any Idea how i can access the sortorder via a link ?

thx in advance,
Johannes
Reply | Threaded
Open this post in threaded view
|

RE: Creating HREF Link with "SortOrder"

Nikita Shinde
In reply to this post by maxwater
Try with this -

<field name="sortOrder" widget-style="buttontext" title="Sort Order"
  <hyperlink also-hidden="true" description="Sort Order"
target="keywordsearch/~sortOrder=SortProductPrice:LIST_PRICE/~SEARCH_STRING=
TEST/~VIEW_SIZE=${viewSize}/~clearSearch=N"/>
</field>


Thanks & Regards,
Nikita.


-----Original Message-----
From: maxwater [mailto:[hidden email]]
Sent: Monday, May 26, 2008 6:14 PM
To: [hidden email]
Subject: Creating HREF Link with "SortOrder"


Hi Everyone,

i am pretty new to OFbiz.

Id like to sort my searchresults. it works pretty fine when using it with a

<form> with an input like

 <input type="hidden" name="sortOrder" value="SortProductPrice:LIST_PRICE">


BUT ! i need it as a link like shown below

"<@ofbizUrl
/keywordsearch/~sortOrder=SortProductPrice:LIST_PRICE/~SEARCH_STRING=TEST/~V
IEW_SIZE=${viewSize}/~clearSearch=N</@ofbizUrl>">LINK


Any Idea how i can access the sortorder via a link ?

thx in advance,
Johannes

--
View this message in context:
http://www.nabble.com/Creating-HREF-Link-with-%22SortOrder%22-tp17471318p174
71318.html
Sent from the OFBiz - User mailing list archive at Nabble.com.