Nate Lowrie wrote:

> On Dec 18, 2007 6:04 PM, Ed Leafe <[EMAIL PROTECTED]> wrote:
>> On Dec 18, 2007, at 12:58 PM, Marcio galvao wrote:
>>
>> > Hi people. I'm trying to get Edit type form, but i'm having some
>> > problems!
>> > I place
>> >         mainForm = app.MainForm
>> >         frm = app.ui.FrmConfiguracao(mainForm, FormType="Edit")
>> >         frm.Show()
>> >
>> > but browse and seletec tab still appears...
>>
>>         Paul would be better able to answer this, but looking over the
>> datanav code, it seems that only FormType="Picklist" affects the
>> pages that are created. To be honest, I don't understand exactly what
>> FormType="Edit" should do.
> 
> This is new to me...Paul or Ed, what is the reason behind the variable
> FormType?  When would I need/want to use it?

To be able to define a form once, but then use it in varying contexts:

normal: select/browse/edit

picklist: only select and browse; double-clicking on a record in the 
grid raises a Picked event.

edit: pass in the pk of the record you want to edit; the form shows with 
just the contents of the edit page for that record.


Paul

-- 
http://paulmcnett.com


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/dabo-users/[EMAIL PROTECTED]

Reply via email to