Home > Community > Forums > Custom IC SKILL > Bindkeys to switch input for form

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Bindkeys to switch input for form 

Last post Mon, May 11 2009 9:30 PM by kbhow. 5 replies.
Started by kbhow 10 May 2009 10:18 PM. Topic has 5 replies and 2752 views
Page 1 of 1 (6 items)
Sort Posts:
  • Sun, May 10 2009 10:18 PM

    • kbhow
    • Top 75 Contributor
    • Joined on Wed, May 6 2009
    • Penang, Pulau Pinang
    • Posts 120
    • Points 2,045
    Bindkeys to switch input for form Reply

    Hi,

     I'm looking for a skill code which able to switch the input string for the form by using bindkeys.

    For example,  i created a form for some rule checks. And user are able to input the data in the reserve string field. Upon finish, all form's data will be store in a table. When next time user invoke the form again, they can use bindkey <key> up and <key> down to check for history.

    Thanks

     

    • Post Points: 50
  • Mon, May 11 2009 5:16 AM

    Re: Bindkeys to switch input for form Reply

    You can't define bindkeys for forms, but perhaps instead you want to use a "combo box" widget?  This is created using hiCreateComboField() - and allows both a list of cyclic choices (which could be your history) and a type in field.

    Regards,

    Andrew.

    • Post Points: 5
  • Mon, May 11 2009 10:02 AM

    • ahamlett
    • Top 500 Contributor
    • Joined on Wed, Jul 16 2008
    • Dallas, TX
    • Posts 31
    • Points 585
    Re: Bindkeys to switch input for form Reply
    If you just want to change a string field in a form with a bind key, you can set the bind key to:

    'myForm->myStringField->value = "new string value"
    changing 'myForm to your form symbol and myStringField to the name of your string field in the form.

    If you want to restore a string that was previously reserved or saved by the form into your database then write a function to set 'myForm->myStringField->value to the saved string and call that function from the bindkey such as:
    myFunction("up") ; moves up through history
    myFunction("down") ; moves down through history
    • Post Points: 5
  • Mon, May 11 2009 1:29 PM

    • rajeshcad
    • Not Ranked
    • Joined on Tue, Nov 25 2008
    • Noida, Uttar Pradesh
    • Posts 5
    • Points 185
    Re: Bindkeys to switch input for form Reply

    Entry part can be string field. Implement the history part as a report field (hiCreateReportField). It will be a scrollable, sortable field.

     

    Rajesh Rai, Solutions at: http://support.cadence.com
    • Post Points: 20
  • Mon, May 11 2009 5:21 PM

    • kbhow
    • Top 75 Contributor
    • Joined on Wed, May 6 2009
    • Penang, Pulau Pinang
    • Posts 120
    • Points 2,045
    Re: Bindkeys to switch input for form Reply

    Hi all,

     Thanks for the prompts reply.  : -)

    Andrew do hit the point that i'm facing. When a form is up, the bindkeys will not working unless the active window is switch to other window. Especially when i trying to use bindkey to change the string's data.

    Let me try on hiCreateComboField and hiCreateReportField.

    Thanks. Cheer

    • Post Points: 5
  • Mon, May 11 2009 9:30 PM

    • kbhow
    • Top 75 Contributor
    • Joined on Wed, May 6 2009
    • Penang, Pulau Pinang
    • Posts 120
    • Points 2,045
    Re: Bindkeys to switch input for form Reply

    Cool...

    It works. I create a function and assign it to <key>up and <key>down to callback for input history. And use function hiCreateComboField to create the string field. It works perfectly.

    Thanks guy.

    • Post Points: 5
Page 1 of 1 (6 items)
Sort Posts:
Started by kbhow at 10 May 2009 10:18 PM. Topic has 5 replies.