Home > Community > Forums > PCB SKILL > getting the label at tree view

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: *

 getting the label at tree view 

Last post Fri, Nov 30 2012 6:48 AM by Ejlersen. 1 replies.
Started by D912349 29 Nov 2012 10:42 PM. Topic has 1 replies and 637 views
Page 1 of 1 (2 items)
Sort Posts:
  • Thu, Nov 29 2012 10:42 PM

    • D912349
    • Top 150 Contributor
    • Joined on Sat, Nov 24 2012
    • Posts 47
    • Points 800
    getting the label at tree view Reply

    Hi everyone,

    I am currently working on an interface where treelist is used. the form will display list of layers present in the design in tree list. every item is set to be displayed with a check box.. the main purpose of the check box is to serve as a trigger for another form.. but in order to load the form, the condition is to check the checkbox and then retrieve the label of item selected.. To retrieve if the checkbox is checked is quite simple, I just used form->treeViewSelState . what is quite confusing is how to retrieve the label whenever the checkbox is selected.. whenever i use form->curValue or axlformGetField. the label extracted is either nil or "". refer to the code below as reference

    ;;;;;code used to load items on tree list. note: DESIGN_LAYER_LIST is the list of layers extracted from board

    (foreach item DESIGN_LAYER_LIST
              axlFormTreeViewAddItem(form "treeLayers" item nil nil t)
    )

    ;;;;;code for form event

    (case oForm->curField

    ("treeHandler"
       let(()
        (form->event
         (normal

            ;;;;; retrieve checkstate

               form->treeViewSelState

         )

    )

    )

    )

    Thanks in advance

          

    • Post Points: 20
  • Fri, Nov 30 2012 6:48 AM

    • Ejlersen
    • Top 10 Contributor
    • Joined on Mon, Jul 28 2008
    • Aalborg, Copenhagen
    • Posts 569
    • Points 10,080
    Re: getting the label at tree view Reply

    Hi

    There might be an issue in that area. I just tried on 16.6 using the built in example of tree view (%cdsroot\share\pcb\examples\skill\form\basic) and it shows the same behaviour.

    It seems like the first time you select something you get "" back, however selecting another item gives you back the level as expected.

    I think you'll have to file a service request to Cadence on this.

    best regards

    Ole

    Best regards Ole
    • Post Points: 5
Page 1 of 1 (2 items)
Sort Posts:
Started by D912349 at 29 Nov 2012 10:42 PM. Topic has 1 replies.