cancel
Showing results for 
Search instead for 
Did you mean: 

Sequencing in MDO

raj44
Participant
0 Kudos

Hi Everyone,

Does MDO has any ID property similar to transactionid function in MII that gets incremented after each execution cycle? We are inserting the data in MDO and would like to have one column as ID which contains value such as 1 to refer to first insertion, 2 to refer to 2nd insertion and so on...How can we achieve this using MDOs?

Thanks,

Rajeev

Accepted Solutions (1)

Accepted Solutions (1)

raj44
Participant
0 Kudos

Thanks for your inputs

Actually, the sequencing can be implemented by using a persistent variable and using an Assignment block as a counter..

swaroop_anasane
Active Contributor
0 Kudos

That's anyways a work around that was always there.

former_member185280
Active Contributor
0 Kudos

Are persistent properties synchronized?

raj44
Participant
0 Kudos

I believe yes, since the column containing the persistent property is getting updated in sync

Answers (1)

Answers (1)

swaroop_anasane
Active Contributor
0 Kudos

Hi Rajeev,

You have some default columns with an MDO that records insert timestamp. You can make use of it.

Thanks,

Swaroop

raj44
Participant
0 Kudos

Hi Swaroop,

So you're saying I have one column and use datenow function to insert the record? Can't we implement a sequence in the column? Also, can select MAX sql syntax be used with MDO?

Regards

Rajeev

swaroop_anasane
Active Contributor
0 Kudos

No Rajeev,

There is a set of columns that gets created automatically for every MDO created for insertion(the one that doesn't have data source). You would be able to see those in your MDO select query not on MDO object.

Please find the image below for reference. You can make use of these columns.

Thanks,

Swaroop