Results 1 to 2 of 2
  1. #1
    Join Date
    Sep 2003
    Location
    Rosenheim / Germany
    Posts
    2

    Unanswered: ObjectPal: action

    Hello,

    the down-mentioned program is ok, but only the last 2 lines don't work.
    Is it possible that ActionEditCommands don't work in Forms or do I have
    another problem ?

    Thanks for your help

    Klaus



    method init(var eventInfo Event)
    Var
    siteForm Form
    endVar

    if siteForm.attach("Formular : KundForm.fsl") then
    if siteForm.isVisible() then
    siteForm.moveTo()
    else
    siteForm.show()
    endif
    else
    siteForm.open("KundForm.fsl")
    endif

    siteForm.action(DataBegin )
    siteForm.action(DataFastForward)

    siteForm.action(FieldLast)
    siteForm.action(FieldUp )

    siteForm.action(DataBeginEdit)

    siteForm.action(SelectSelectAll)

    siteForm.action(EditDeleteSelection)
    siteForm.action(EditPaste)

    endMethod

  2. #2
    Join Date
    Aug 2003
    Location
    Bologna - Italy
    Posts
    209
    You can try to send the action directly to the field you need:

    Instead of this:

    siteForm.action(FieldLast)
    siteForm.action(FieldUp )

    siteForm.action(DataBeginEdit)

    siteForm.action(SelectSelectAll)

    siteForm.action(EditDeleteSelection)
    siteForm.action(EditPaste)

    Try this:

    siteForm.nameOfTheField.action(DataBeginEdit)
    siteForm.nameOfTheField.action(SelectSelectAll)
    siteForm.nameOfTheField.action(EditDeleteSelection )
    siteForm.nameOfTheField.action(EditPaste)

    Bye!
    The only failure is not trying to do it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •