Como fazer uma ACTION com loop e quais fórmulas podem ser usadas para alterar o conteúdo de uma [co

Como fazer uma ACTION com loop e quais fórmulas podem ser usadas para alterar o conteúdo de uma [coluna] específica de uma tabela, para todas as linhas desta tabela, que atendam uma determinada condição lógica?

Solved Solved
0 6 85
1 ACCEPTED SOLUTION

You could do so with reference actions if there are just a few rows ( 10-20)

1. Please create a slice called say "Slice_ANTIGO" on the table with a filter expression something like  [coluna_x] = "TEXTO_ANTIGO"

2. Create an action type "set values of some columns in the row" that sets the  [coluna_x]  to "TEXTO_NOVO" .  Let the name of this action be "Set Coluna X to Novo"

3.  Create an action type " execute an action on a set of rows" on the table with

     A) Referenced row expression something like Slice_ANTIGO[ Key column of the table]

      B) In the "For  a record  of this table" and "Reference Table" settings , please enter the table name that that has the column [coluna_x]

      C) In the "Only if this condition is true" setting of the action please enter [coluna_x] = "TEXTO_ANTIGO"

       D) Please have the "referenced action" setting to action "Set Coluna X to Novo"

     E) Set the position of this action as "Inline" if you wish to invoke it from a summary view. Attach it to a suitable column.

      Now whenever this reference action is invoked from any of the records where [coluna_x] = "TEXTO_ANTIGO", it will set all the records with [coluna_x] = "TEXTO_ANTIGO" to "TEXTO_NOVO"

View solution in original post

6 REPLIES 6

Would you please elaborate a little more on your requirement?

In general, if there are a handful of roes in a table, you may use a reference action or even a bot can edit all the rows of a table as desired,

Como alterar uma coluna específica em varias linhas de uma mesma tabela, conforme a condição abaixo?

IF [coluna_x] = "TEXTO_ANTIGO",  [coluna_x]="TEXTO_NOVO, FALSE()

You could do so with reference actions if there are just a few rows ( 10-20)

1. Please create a slice called say "Slice_ANTIGO" on the table with a filter expression something like  [coluna_x] = "TEXTO_ANTIGO"

2. Create an action type "set values of some columns in the row" that sets the  [coluna_x]  to "TEXTO_NOVO" .  Let the name of this action be "Set Coluna X to Novo"

3.  Create an action type " execute an action on a set of rows" on the table with

     A) Referenced row expression something like Slice_ANTIGO[ Key column of the table]

      B) In the "For  a record  of this table" and "Reference Table" settings , please enter the table name that that has the column [coluna_x]

      C) In the "Only if this condition is true" setting of the action please enter [coluna_x] = "TEXTO_ANTIGO"

       D) Please have the "referenced action" setting to action "Set Coluna X to Novo"

     E) Set the position of this action as "Inline" if you wish to invoke it from a summary view. Attach it to a suitable column.

      Now whenever this reference action is invoked from any of the records where [coluna_x] = "TEXTO_ANTIGO", it will set all the records with [coluna_x] = "TEXTO_ANTIGO" to "TEXTO_NOVO"

Esta resposta funciona individualmente para cada registro do arquivo. (modo inline).

Preciso fazer uma action para alterar todos os registros do arquivo com apenas um click.

Obrigado.

Vou fazer como você disse.

Gratidão pelas informações!


@Suvrutt_Gurjar wrote:

 A) Referenced row expression something like Slice_OLD[ Key column of the table]


The above step should ensure that all the rows to be changed  are selected in the reference action.

 

Top Labels in this Space