Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Displaying 'populated' "views"
Pages: [1] Print
Author Topic: Displaying 'populated' "views"  (Read 517 times)
jfdutcher
Jr. Member
**
Offline Offline

Posts: 95


View Profile
Displaying 'populated' "views"
« on: February 15, 2006, 07:10:01 PM »

I have a Rebol 'View' for my user to use to select one of multiple radio buttons .....

I'm trying to get my arms around the 'logical flow' that should follow once they have done so...

I presume I would close the current view ....but how do
I properly initiate one of various new views (depending on the radio button selected)....and more than that...
these views must be 'populated' with data from a database 'before' presentation. This is to mirror my current CGI PHP version where I would call to a server script which would retrieve the data and 'write back' the HTML with all the many (in this case) drop downs, check boxes , text boxes etc. populated.
I'm looking at docs .... but haven't seen anything that takes the process that far yet  ?
Logged
CarlRead
Full Member
***
Offline Offline

Posts: 105


View Profile
Displaying 'populated' "views"
« Reply #1 on: February 17, 2006, 05:14:45 AM »

I'm not sure if this answers all your question, but I think it at least shows how to keep track of the status of radio buttons...

Code:
REBOL [ ]

show-status: does [
   r1/text: reform [a1/data a2/data a3/data]
   r2/text: reform [b1/data b2/data b3/data]
   show [r1 r2]
]

radio-lo: layout [
   across
   a1: radio of 'a1
   a2: radio of 'a1
   a3: radio of 'a1
   button "Update" [show-status]
   b1: radio of 'b1 [show-status]
   b2: radio of 'b1 [show-status]
   b3: radio of 'b1 [show-status]
   return
   button "Close" [show-status unview radio-lo]
]

view layout [
   button "Set Radios" [view/new radio-lo]
   across
   label "Radio1 status:" r1: info
   return
   label "Radio2 status:" r2: info  
]
Logged

- Carl Read
john.dutcher@highmark.com
Guest


Email
Displaying 'populated' "views"
« Reply #2 on: February 17, 2006, 07:18:44 AM »

Very enlightening ......Thanks much.    

John D.
Logged
Pages: [1] Print 
Rebol Talk Forum  |  Getting Started  |  Newbie Help  |  Topic: Displaying 'populated' "views"
Jump to:  

  
Quick Search...

Advanced search
  
Welcome, Guest. Please login or register.
Did you miss your activation email?
December 03, 2008, 11:34:14 PM
Username: Password: Session Length:
  

News: 01-09-08

Alpha version of REBOL 3 has been released!


  
2315 Posts in 597 Topics by 4205 Members
Latest Member: TimTearton

  Rebol Talk Forum | Powered by SMF 1.0.9.
© 2001-2005, Lewis Media. All Rights Reserved.

RT design by Defiant Pc