0

I am working on generating a form with fields of dimensions including Itemid.

I have a form in which i have only the ItemId, I need to find inventDimID for it.

How do I do that?

Jan B. Kjeldsen
  • 17,817
  • 5
  • 32
  • 50
Tejashree S
  • 311
  • 1
  • 12
  • 27
  • The answer to this question depends on what you want the inventDimID of. What table are you using to get the itemid? What are you looking for (inventtrans table will have the inventdimid of all transactions on a given item). – Michael Brown Apr 04 '12 at 18:12
  • I just have a itemid and not any transactiosn – Tejashree S Apr 04 '12 at 18:21

1 Answers1

1

I think that what you are looking for here are the dimensions of the item, not necessarily the inventDimId. In order to get the dimensions, you could do the following(for the purpose of this example, we have our dimension[1] = Department:

static void Job8(Args _args)
{
    Dimension   dim;
    SysDim      department;
    ;
    dim = InventTable::find('3t80').Dimension;
    department = dim[1];


}
Michael Brown
  • 2,221
  • 2
  • 17
  • 34