Hi there,
I spent half a day trying to find a solution to my problem in the forum, but haven’t been able to get any closer.
I am working on a R6.5 server. My requirement is that I have a set of documents in a database which I am displaying on the web using certain computed subforms in a main form (called web01).
Now…I have to display the same documents using different subforms in a second form (called web02). However…I need to be able to dynamically decide which form to use to display the documents, i.e whether it should be web01 or web02.
As an example…if the user types in: www.domain.com/abcd → i’ll have to display using web01.
if the user types in:
www.domain.com/efgh → i’ll have to display using web02.
Also…the documents has links which need to be relative, but I’ll tackle that after I solve this.
I have been struggling to find a solution to this for the last two days and would greatly appreciate it if somebody could give me some guidance/assistance.
Thanks and Regards,
Deb
Subject: different subform display based on url
You have a couple of options to try here. One would be to use the Query_String (which you do not have in your URL, or you can use
tmpURL:=@URLDecode(“Domino”;encode);
@If(@Contains(tmpURL;“abcd”);“subformA”;“subformB”)
you can use this same logic to set a BaseHref value that will allow you to set relative URLs.
What are the differences in the two forms? are there data differences or is it mainly UI stuff?
Subject: RE: different subform display based on url
Hi file save,
Thanks for your response…
I’ll try it out and see what happens.
tmpURL:=@URLDecode(“Domino”;encode);
@If(@Contains(tmpURL;“abcd”);“subformA”;“subformB”)
The difference between the two forms is in the html displayed to the user. They are completely different.
Thanks,
Deb
Subject: RE: different subform display based on url
Instead of having different forms, why not use different stylesheets (or is the content actually different)?
Subject: RE: different subform display based on url
Dear FileSave,
Thank you for your response…the content is actually different…I’ve managed to get a solution in theR5 forum.
Thanks for your assistance
Best Regards,
Deb