Jump to content

Struct members and Data Table columns reordering


ofer.yishai

Recommended Posts

Hi,

 

I create an indexed data table, based on a struct previously defined.  but now I want to change the table columns order or to insert a  new column to the left. Every member added to the struct is placed at the end of the list and to the right column of the table. I found it possible to change columns order by dragging headers on the data table editor, but when exporting the data table to excel it is keeping the original column order as the original struct members order when created!! Also this order is shown at Uniapps data table viewer. This is not the necessarily the correct order required!

 

Yes, I can delete and recreate the struct and the data table and rebuild them in the right order, bur is thee a beater way? like changing the struct members order?

 

In addition I found it is possible to sort struct members by Name or by Type but not back to the natural order they created, and shown in the opened list in ladder elements . I guess a "Member #" column is missing for viewing, sorting and reordering, that can fix it all.

 

post-5537-0-72668200-1442923163_thumb.jpg
 

Unilogic Version 1.14 Rev.62

 

Thanks in advance,

 

Ofer

post-5537-0-72668200-1442923163_thumb.jpg

  • Upvote 1
Link to comment
Share on other sites

  • MVP 2023

Yes, but if you copy a DT function block from another project with an identical (appearing) DT, but the columns were inserted differently, then the FB will not refer to the correct columns.

 

The problem is that the Data Tables use addressing that is not visible to the programmer. VisiLogic seems to indicate that the name of the column is the address pointer, but it is not.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...