Skip to Content
author's profile photo Former Member
Former Member

Relations between user defined tables...

Hi,

I'm trying to add several user defined fields to the Item Master Data which have relations between each other.

Is it possible to build a kind of cascade where depending on the selection of one field, the options for selection of the following field will change accordingly?

Ex:

Table/Field Type:

Type A (refers to color RED)

Type B (refers to color BLUE)

Type C (refers to color RED and BLUE)

Table/Field Color:

If selected above C the options will be RED and BLUE;

If selected above A the option will be RED;

etc...

Tkx,

Vítor.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 11, 2005 at 10:40 AM

    How many combobox do you want to populate? This can be quite slow if you have lots of data

    Cheers,

    Cyril

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hey Vítor,

      If it does not give any error, the query looks good, but doe snot return any results (so it's not good after all) It could have something to do with the lookup to the first comobox.

      In your query you should refer to the first combobox like

      $[$COMBO_ONE.0.0]

      (where COMBO_ONE must be replaced with the Unique ID of your first combobox)

      Note, in the query, do <i>not place quotes around it, SBO handles this for you... 😊

      Good:

      SELECT var FROM tbl WHERE other_var = $[$COMBO_ONE.0.0]

      Wrong:

      SELECT var FROM tbl WHERE other_var =

      '

      $[$COMBO_ONE.0.0]

      '

      Hope it helps...

      Grtz, Rowdy

  • Posted on Oct 11, 2005 at 09:34 AM

    gues you talk about two comboboxes..

    Catch combobox 1 selected value and popolate combobox 2 with new valid values... Don't think that there are a more fancy way...

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.