NetTalk Central

Author Topic: Form on a browse  (Read 3416 times)

LyGilCo

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • Email
Form on a browse
« on: October 07, 2010, 06:06:31 PM »
Hi guys,
             I am sure that this is probably easy, I just need a pointer as to how to do it. (Havving a child on a web browse doesn't seem to be the way to go)
Nettalk4
I whish to place a non-editable form with tabs below a webbrowse. The form will show the contents of each browse record as you scroll through.
I have looked through the examples / docs and can't see how to do.
Attached is a screenshot of the general idea
Regards
Murray

[attachment deleted by admin]

LyGilCo

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • Email
Re: Form on a browse
« Reply #1 on: October 09, 2010, 02:39:24 AM »
I found a post that seems to indicate that it its not that easy.

Still, if anyone has an idea ...  The form is view only

Hi there!

I would like to have a form as a child on a browse. So let's say I have an order browse with a lot of information but I only have a handfull of fields I want to place on the browse. The other fields I want to place on a form (for viewing only) below the browse. So when I click on a row in the browse the fields inside the form/view have to tag along.
How can I do that? I have tried to most obvious way to put the update form as a child of the order browse, but that does not work.

Thanks!
Sjoerd

   Report to moderator   Logged
Greetz,
Sjoerd
Bruce
Hero Member
*****
Posts: 1847



View Profile Personal Message (Offline)
   
   
Re: Browse with child Form
« Reply #1 on: October 27, 2008, 07:08:56 am »
   Reply with quoteQuote
Hi Sjoerd,

>> I would like to have a form as a child on a browse.

Yes, this seems like an obvious thing to do, and something I started looking into in example #5 (which doesn't work).

It turns out to be a seriously non-trivial thing to implement, because of the way the architecture works. At the moment it's one of those cases where the "simple" is really not simple under the skin. I might be able to make it work in NetTalk 5, but at this stage I' making no promises.

One possible work-around is to use a NetWebSource rather than a netWebForm. This (unfortunately) means you have to code the html yourself, but is more-or-less the only option right now.

Cheers
Bruce
   Report to moderator   Logged
bergsj
Jr. Member
**
Posts: 57


swjvandenberg@hotmail.com
View Profile Email Personal Message (Offline)
   
   
Re: Browse with child Form
« Reply #2 on: October 27, 2008, 11:44:04 am »
   Reply with quoteQuote
Bruce,

Do you have some examples of this manual option you're talking about since this is my only option right now?
   Report to moderator   Logged
Greetz,
Sjoerd
Pages: [1]    
     Reply  |  Notify  |  Mark unread  |  Send this topic  |  Print    
« previous next »
 
Jump to: 

Powered by MySQL Powered by PHP    Powered by SMF 1.1.11 | SMF ©

hilton

  • Jr. Member
  • **
  • Posts: 59
    • View Profile
Re: Form on a browse
« Reply #2 on: October 11, 2010, 04:19:59 AM »
Hi,

I saw your post and tried something which works (albeit a bit clumsy - I am still a bit new to this stuff).
1) set up a netwebform
2) put a browse on it
3) put the fields that you want on 1) netwebform and give them names eg 'loc:AddressLine1'.  Check readonly property.
4) put these fields in the client side reset of the browse so that each time the browse is clicked the fields on 1) are reset
5) in the browse in CALLCLICKED put the values from the data record into the sessionvalues eg 'loc:AddressLine1'
6) in the 1) netwebform in the ValidateValue::loc:Addrline1 (priority 5000) put the code
loc:Addrline1 = p_web.gsv('loc:Addrline1')

Now as you click each line on the browse, the field will be displayed in the field in the 1) Netwebform.
As I say, it's a bit messy but works fine.

Bye,
Hilton.

LyGilCo

  • Newbie
  • *
  • Posts: 17
    • View Profile
    • Email
Re: Form on a browse
« Reply #3 on: October 11, 2010, 06:05:46 PM »
Hi Hilton,
               Thanks for that, looks good , will try

Cheers
Murray