• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Allegro X PCB Editor
  3. How to select specific Tab in form and specific row in ...

Stats

  • Replies 7
  • Subscribers 159
  • Views 14860
  • Members are here 0
More Content

How to select specific Tab in form and specific row in grid

Ejlersen
Ejlersen over 13 years ago

Hi

I've created a multitab UI and would like to know if there is a way to startup on a specific tab of the program. All settings are saved as attachments and I could easily store this also, but I've not been able to find any help regarding this in the documentation.

My second challenge is that I'm also working with a grid based form (it is not multirow enabled) on one of the tabs where rows can be moved up and down, for this I would like to know if there is a way to do a rowselect of a specific row?

Best regards

Ole

  • Sign in to reply
  • Cancel
  • Pawandeep
    Pawandeep over 13 years ago
    Hi Ole,

    For your second question, you can try this below command for selecting particular row/col

    For row select:

    axlFormGridOptions(f1s "Grid" 'goto 1)

    For col select:

    axlFormGridOptions(f1s "Grid" 'goto 1:2)

     
    Regards,
    Pawan
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Ejlersen
    Ejlersen over 13 years ago

    Hi Pawan

    Thank you for your reply. 'select is the correct command to select the row. Unfortunately it only partly solved the problem.

    I'm implementing an up/down that should move rows up and down.

    So selecting a row and pressing Up moves the selected row one row up

    I would then like to be able to press up again to move it one more row up. But the problem is that even 'select does not give me the correct row for the form, so it stays at the original selected row. 'goto does not change this, do you have any suggestions for this?

    Best regards

    Ole

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fxffxf
    fxffxf over 13 years ago

    1) change tab displayed

       axlFormSetField(form "<name of tab> 1)

                  - in the form file add "OPTIONS tabsetDispatch" to the "TABSET" definition (see example axlform.il/axlform.form; look for f1s_lastTab)

                 - the form dispatches the <name of tab> as the curValue to the "TABSET" field name when the tab is changed.

                 - <name of tab> the name displayed to user & in the form file is the name in the "TAB" definition.

     

    2) try using the 'select option with  axlFormGridOptions

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Ejlersen
    Ejlersen over 13 years ago

    Hi

    Changing tab is fine

    'Select does not select the correct row, it keeps staying at the current row

    Example:

    I select row 3

    printf("%L:\t(%d,%d) %L\n", fg->event, fg->row, fg->col, fg->curValue) will show the following: rowselect: (3,0) t

    I now do a

    axlFormGridOptions(fg "grid" 'select fg->row - 1)

    It visually shows the fg->row-1 as selected but the result of the print command is still the same

    printf("%L:\t(%d,%d) %L\n", fg->event, fg->row, fg->col, fg->curValue) will show the following: rowselect: (3,0) t

    So somehow it does not change fg->row

    What is causing this situation?

    Best regards

    Ole

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • fxffxf
    fxffxf over 13 years ago

    The form handle data reflects the result of the last form event and is not updated when you programmatically change form data. You can see the same behavior if your Skill code changes the content of the active field. The form handle curValue will still show the previous contents.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
>
Cadence Guidelines

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information