V S Posted August 31, 2020 Share Posted August 31, 2020 Hi, I am trying to add all rows from Table B into Table A. Both tables have some calculated columns added (same names) When using 'addRows' and AddRowsSettings in script to add rows from one table to another it creates additional calculated columns such as calcCol(1) and so on.. any idea how can I not add extra/duplicate columns Thanks Link to comment Share on other sites More sharing options...
Fabian Duerr Posted September 1, 2020 Share Posted September 1, 2020 Can you try to use the following method to create your calculated column: Instead of Insert -> calculated column you use Insert -> Columns... then pick the same data table as source and chose the transformation 'calculate new column' and click 'add'. Type your formula for calculation there. The difference with this approach is that the calculated column is no longer dynamical. The values are fix (static). This column is treated like any other column. As long you have a dynamical column you can't merge data on this column. (If both of your tables have the same calcualtion, then just merge the tables first and do the calculation afterwards) Link to comment Share on other sites More sharing options...
Shandilya Peddi Posted September 1, 2020 Share Posted September 1, 2020 Have looked into the following AddRowsSettings constructor where you can add list of columns that should be ignored, https://docs.tibco.com/pub/doc_remote/sfire_dev/area/doc/api/TIB_sfire-a... Link to comment Share on other sites More sharing options...
V S Posted September 3, 2020 Author Share Posted September 3, 2020 I tried using this approach but did not quite get the use of rowSourceColumn and newRowSourceValue Any example would be great DOes it mean an extra column is added to the source data col Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now