NetTalk Central

Author Topic: Multi browses in mem form parent, single update form, context info to form posb?  (Read 4124 times)

Stu

  • Hero Member
  • *****
  • Posts: 510
    • View Profile
    • Email
Hi Bruce/Folks,

Okay, so I've got a memory form (parent) with four child browses, 1 through 4 (see attached pic).

Basically it's a Diary type interface (couldn't get the NetWebYear to bend to my will, so am trying to do it myself).

The four browses look at a single day of the same file (ie Monday, Tuesday Wednesday, Thursday).

The browses each use a set date value to filter off. Browse 1 filters by the p_web.GSV('load:For_Date_1') value. Browse 2 filters by p_web.GSV('load:For_Date_2'), or alternatively p_web.GSV('load:For_Date_1')+1. Browses 3 and 4 follow in that fashion.

Each browse calls the same update form, as a popup (so no custom url), w_Load_Update.

I'm trying to get the "For Date" value for the particular browse that called it to be found by the update form.

The problem with using a popup form is that the loc:Parent value in the popup form is the parent memory form, not the browse that the form is located off.

Getting the name of the browse that calls the form is how I would be able to find the GSV date value which corresponds to that browse. But there might be another way, am not sure.

An unwieldy option is to create four forms to be called by each of the browses. That seems, like way too much work (and would give headaches every time I wanted to change something in the form).

At the moment I'm leaning toward doing away with the popup functionality and calling a custom form url with the date stuck in there for the browse that is calling it.

But maybe someone knows a better way?

Cheers for your time.

[attachment deleted by admin]
« Last Edit: December 14, 2015, 09:56:45 PM by Stu »
Cheers,

Stu Andrews

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
>> Basically it's a Diary type interface (couldn't get the NetWebYear to bend to my will, so am trying to do it myself).

perhaps the real answer is to figure out why it's not bending to your will... These sorts of interfaces are complex, and there's a lot of code under the hood to make it work, so that's a lot for you to duplicate. Might be easier to build a small example, using the NetWebYEar, and develop that (with help here) to get what you need...

cheers
Bruce