NetTalk Central

Author Topic: Form as Criteria for a Browse  (Read 4225 times)

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Form as Criteria for a Browse
« on: April 06, 2011, 05:44:54 AM »
Howzit,

My app used to work fine when run in Internet Explorer 7 and 8, but now that I upgraded to NT5.20, not anymore.  Firefox also don't work.

Go here:

https://grailafrica.dyndns.biz:47245
user: 1/950
password: 12345

When logged in, go to Qeury -> Policies, then select Active and click on Find.

It is suposed to show all active policies, but nothing happens.

When you go to menu item Quotes, the Form does not unhide the Browse and then the filter criteria works if you click on one of the choices.  (Which I think means the Form as Criteria for Browse is broken if the Browse is hidden.)

Please help or fix it ASAP.

Charl

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Form as Criteria for a Browse
« Reply #1 on: April 06, 2011, 06:03:36 AM »
Your "find" button has a URL, so it's gonna go to that page - not unhide anything.

I'm presuming the browse is on the search form, so all the button should do is unhide the browse.
So there should be no URL on the button - rather the button should just "reset" the browse field on the client side tab.

Please paste here the expression you are using on the browse for;
a) Hide Condition
b) Include Condition and
c) Filter

cheers
Bruce

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Form as Criteria for a Browse
« Reply #2 on: April 06, 2011, 06:29:34 AM »
>> Your "find" button has a URL, so it's gonna go to that page - not unhide anything

The URL is the same as the Form procedure, ie the Form is called 'FramePolicies', so that's what I have in the URL.

a) Hide Condition
Nothing

b) Include Condition
p_web.gsv('PolicyFilter') <>''

c) Filter
Uhm, this is a bit long.  Basically what I put in the session value 'PolicyFilter'.

If I am correct you basically say I should send new values to the server on the Client side and set the other fields in the Reset's to unhide or include the fields as I would do in a normal Form. 

Kind of makes sense, now that I think of it.  (What threw me out here is that it used to work.)

Let me try this and then I'll get back to you.

Thanks
Charl


charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Form as Criteria for a Browse
« Reply #3 on: April 11, 2011, 04:22:27 AM »
Orraait, it works, change in thinking some times required.

Thanks.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11244
    • View Profile
Re: Form as Criteria for a Browse
« Reply #4 on: April 11, 2011, 04:33:47 AM »
version 5.22 has the ability to hide / unhide tabs.

Cheers
Bruce

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Form as Criteria for a Browse
« Reply #5 on: April 11, 2011, 05:25:37 AM »
Bruce,

I have no words to express my gratitude.  Now I can't wait for the next specs to come in from clients, which is something very new for me...

Thanks
Charl