Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

sort order configuration selectedrecords Interactive Grid

simon30104 days ago

Hello together,

I have a question / challenge about the sort order with the following code. My challenge is that I want the IDs in the particualar order how I selected them. When I work with the following code, implemented in a dynamic action, which reacts on the event selection change of an ig, each time the order is changing the IDs to an asecending order.

It would be nice if there is an solution. I am glad to hear from you.

Greetings,

Simon

Oracle APEX Version: 23.2

var i, i_activity_id = "", 

model = this.data.model;

for ( i = 0; i < this.data.selectedRecords.length; i++ ) {

    i_activity_id += model.getValue( this.data.selectedRecords[i], "ACTIVITY_ID") + ":";
}
i_activity_id= i_activity_id.slice(0, -1);
apex.item( "P2100_SELC_RW_IG_NON_MMA_ACT").setValue (i_activity_id);

Comments

Post Details

Added 4 days ago
0 comments
41 views