cancel
Showing results for 
Search instead for 
Did you mean: 

how to get the default warehouse from UI

Former Member
0 Kudos
320

How can i know (Via UI )at item master data card , at the warehouse matrix,what is the row that represent the default warehouse? it is the bold text row.

Via the UI, i can know, what is the Selected row, the yellow mark row, but the bold row can be different row from the selected row...

Thanks

View Entire Topic
barend_morkel2
Active Contributor
0 Kudos

Unfortunately you can't access that information via the UI API. You will need to access the Item (name) via the UI API (on screen) and then use the item code with the DI API Item Master Object .GetByKey to access all the Item related info lyou are looking for..

Former Member
0 Kudos

Thanks

AlexGrebennikov
Active Contributor
0 Kudos

Hi!

You can also execute a simple SQLQuery via RecordSet.DoQuery().

The query is

SELECT
	DfltWH
FROM
	OITM
WHERE
	ItemCode = 'xxx'