NetTalk Central

Author Topic: Problem with stdbrowse buttons and condition  (Read 4824 times)

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Problem with stdbrowse buttons and condition
« on: March 23, 2016, 10:35:27 AM »
Hi,

I've changed web33 (dropfilter) to lookupfilter and put a condition to INSERT button.

i intend to show INSERT button just if some parent are selected. I tried the same condition on ONLY SERVER IF of (Browse and Form), but nothing happen.

But, if i click update the page, it works fine.

Thanks
Walter - SOFTVALE

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: Problem with stdbrowse buttons and condition
« Reply #1 on: March 31, 2016, 05:04:21 AM »
Hi Bruce,

Could you check it, please?

Thank you a lot.

Walter - SOFTVALE

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Problem with stdbrowse buttons and condition
« Reply #2 on: March 31, 2016, 06:33:01 AM »
Hi Walter,

I'm not sure I understand the problem.
Please post very simple instructions on what I must do in the app to
a) see what you are seeing and
b) tell me what you are _expecting_ to see

cheers
Bruce


walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: Problem with stdbrowse buttons and condition
« Reply #3 on: April 01, 2016, 10:25:12 AM »
Hi Bruce,

. i've changed loc:MailBox from Drop to Lookup in FilterAlias procedure.
. i've included a condition (p_web.GSV('loc:mailbox')>0) to the INSERT button of AliasBrowseControl

What i expecting to see.

. at first time i call FilterAlias where loc:MailBox is equal 0 (Zero), so INSERT button is not showed
. After select a value to loc:MailBox i want to see INSERT button

What is happen

. at first time i call FilterAlias where loc:MailBox is equal 0 (Zero), INSERT button is not showed
. After select a value to loc:MailBox INSERT button still not showing
. If you update the page using browseR then INSERT button is showed

I've tried to use 'Server If Only' field on Security Tab of AliasBrowseControl and que behaviour is the same.
Walter - SOFTVALE

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Problem with stdbrowse buttons and condition
« Reply #4 on: April 18, 2016, 11:24:24 PM »
this was a very tricky one Walter, so thanks for the example.
fixed in 9.07

cheers
Bruce

walter.dasilva

  • Sr. Member
  • ****
  • Posts: 314
  • SOFTVALE
    • MSN Messenger - walter@softvale.com.br
    • View Profile
    • SOFTVALE
Re: Problem with stdbrowse buttons and condition
« Reply #5 on: April 19, 2016, 12:13:14 PM »
Hi Bruce,

It is working very nice.

Thank you a lot

Walter
Walter - SOFTVALE