Rank: Sienn Developer
Groups: Administration
Joined: 10/8/2008(UTC) Posts: 23
|
The definition of the parameters for using a viewcontrol:
{!$Control.42.<viewid>.<WHERE query overrule>.<Start position>.<Search String>.<Cid Index>.<Ajaxenabled option>$!}
<viewid> The viewid
<WHERE query overrule> Query for the view starting with WHERE
<Start posistion> The startposition for viewing the records (paging)
<Search String> For using the view search option
<Cid Index> Index of cid, for exchanging views of different sites
<Ajaxenabled option> AjaxEnabled: View is AjaxEnabled
|
|
|
|
Rank: Administration
Groups: Moderators, Administration, Member Joined: 7/16/2009(UTC) Posts: 30   Location: Groesbeek Thanks: 1 times
|
For example: {!$Control.42.36.WHERE JPU_SubGroup|MainGroupId={!!MainGroup.Id!!}$!}
|
|
|
|
Rank: Administration
Groups: Administration
Joined: 10/8/2008(UTC) Posts: 190  Was thanked: 1 time(s) in 1 post(s)
|
In the query part, you have to replace "." by "|" else the viewcontrol thinks it's another parameter.
now I run into the following trouble. In a text somewhere in the border of the page I want to display some information about the product, So I created a view for it which I want to call with a viewcontrol.
So my viewcontrol looks like this: {!$Control.42.22.where {!!Par.Query!!}$!} however my url looks like this: /Basis.aspx?Tid=110&Hmi=111&Lid=18&Lit=VIEW&Query=ANPU_ShopArtikel.Id=3
How do I make sure the correct where statement is used?
|
|
|
|
Rank: Administration
Groups: Moderators, Administration, Member Joined: 7/16/2009(UTC) Posts: 30   Location: Groesbeek Thanks: 1 times
|
You can build an Open Control for it.
|
|
|
|
Rank: Administration
Groups: Administration
Joined: 10/8/2008(UTC) Posts: 190  Was thanked: 1 time(s) in 1 post(s)
|
Thank you for the answhere, that can be indeed the solution. But I wanted to try this without creating an Open control.
but I didn't use the action bar yet so I changed the text to an actionbar, then I can you a queryoverrule when I add the view to the action bar.
|
|
|
|
Rank: Guest
Groups: Guest
Joined: 9/17/2008(UTC) Posts: 66
|
FYI, below example with start position:
{!$Control.42.1.WHERE UITZU_fotoboek|fotoboekgroep='accommodatie'.{!!Par.STARTPOS!!}$!}
|
|
|
|
Rank: Administration
Groups: Administration
Joined: 10/8/2008(UTC) Posts: 190  Was thanked: 1 time(s) in 1 post(s)
|
Originally Posted by: andrew  FYI, below example with start position:
{!$Control.42.1.WHERE UITZU_fotoboek|fotoboekgroep='accommodatie'.{!!Par.STARTPOS!!}$!} I think you mean: {!$Control.42.1.WHERE UITZU_fotoboek|fotoboekgroep='accommodatie'. 0{!!Par.STARTPOS!!}$!} The zero("0") here is not unimportant! This makes sure all still work when not having STARTPOS in the url.
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.
Important Information:
The Sienn Forum uses cookies. By continuing to browse this site, you are agreeing to our use of cookies.
More Details
Close