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

Formatted search / Item Group

Hi! We are trying to implement a two-level Item Group hierarchy in SBO 6.5.

For this purpose we created a User Table "@WQSITMGRPHIERARCHY") for linking each sub Item Group to top (parent) Item Group. The columns of this table (U_SubCode and U_TopCode, the type of both columns is Number 6) establish the links between Item Groups.

With Query Generator we created a Query (a SQL select) that we defined as formatted search for a new User Defined Field (type Alphanumeric 20) on the form.

It seems that we are not correctly getting the Item Group Code with references $[$39.0.0] or $[$OITM.ItmsGrpCod].

-

SELECT T2.ItmsGrpNam FROM "@WQSITMGRPHIERARCHY" T1, OITB T2 WHERE T1.U_TopCode = T2.ItmsGrpCod AND T1.U_SubCode = $[$39.0.0]

-

Pressing Shift-F2 in this field gives a blank field, Error 3006, or SBO "needs to close".

However, using a hard coded reference returns the correct Item Group Name:

-

SELECT T2.ItmsGrpNam FROM "@WQSITMGRPHIERARCHY" T1, OITB T2 WHERE T1.U_TopCode = T2.ItmsGrpCod AND T1.U_SubCode = '127'

-

Can you help us on this one?

Juha

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 23, 2004 at 04:40 PM

    You can see the result of you reference by opening the according query manually after you opened the form: $[$39.0.0] should be replaced with the desired value.

    I guess you're in the items management form?

    Then this is it: $[$39.1.0]

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 27, 2004 at 02:13 PM

    Thanks, Dierk

    It works now.

    Regards, Juha

    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.