UUID logic should be applied for AD_Table_ID of ImpFormatElementHandler

Description

Hi,

Please refer to attached 2Pack_1.0.0.zip, it is 2Pack of Import Loader Format.

In the xml, the AD_Table_ID is fixed

<AD_ImpFormat type="table">
<AD_ImpFormat_ID>200001</AD_ImpFormat_ID>
<AD_Client_ID>0</AD_Client_ID>
<AD_Org_ID>0</AD_Org_ID>
<AD_ImpFormat_ID>200001</AD_ImpFormat_ID>
<IsActive>Y</IsActive>
<Name>Import Budget</Name>
<Description/>
<FormatType>C</FormatType>
<AD_Table_ID reference="id">200139</AD_Table_ID>

It should be applied something like below (to follow UUID logic which working well in other 2Pack handler):

<AD_Table_ID reference="uuid" reference-key="AD_Table">951f4a96-fa4b-4865-b09a-29b283a21701</AD_Table_ID>

please help to double check my findings.

Thanks & BR,

Ken

Environment

None

Attachments

1
  • 09 Feb 2020, 08:47 AM

Activity

Show:

Ken Longnan February 10, 2020 at 2:19 PM

OK, I see, the ID is wrong.

<AD_Table_ID reference="id">200139</AD_Table_ID>

Somehow the customization table was packed in but with official ID. (with another 2Pack.zip).

please close the issue, thanks a lot!

Ken

Carlos Ruiz February 10, 2020 at 1:08 PM

The table which I want to apply Import Loader Format is customization table, but 2Pack still exported it as ID, it should be UUID since the table is not official table.

Customization tables MUST have IDs >= 1000000, is that your case?

 

I think UUID should apply as much as possible than ID, one day, maybe UUID will be the better candidate as official ID for general design.

At this moment I think is convenient as you can see directly if the 2pack applies to an official table or to a customized table.

And yes, in future I think we’re going to get rid off official IDs in favour of UUIDs - but that will probably still take some time.

 

 

Ken Longnan February 10, 2020 at 11:37 AM

The table which I want to apply Import Loader Format is customization table, but 2Pack still exported it as ID, it should be UUID since the table is not official table.

 

I think UUID should apply as much as possible than ID, one day, maybe UUID will be the better candidate as official ID for general design.

Carlos Ruiz February 9, 2020 at 1:42 PM

Official IDs (<1000000) are used in 2pack when possible - UUIDs are used for non-official ID

I find that convenient.

Incomplete

Details

Assignee

Reporter

Components

Priority

Created February 9, 2020 at 8:45 AM
Updated April 1, 2020 at 3:28 PM
Resolved February 10, 2020 at 2:24 PM