Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Disable table in smartform

former_member209372
Participant
0 Likes
2,087


hai Everyone,

       I've created a smartform with two table, my recuirement is that,

      i should show only one table when a condition match,

For E.g

if  <condition_true>

      First table

elseif<condition_true>

      Second table.

Its should show either one table as for the condition matches.

How can i achive this.??

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,994

Hi,

create 2 tables and add the conditions in table conditions tab.

for ex.

if  <condition_true>

      lv_flag = 'X'.

elseif<condition_true>

      lv_flage = '  '.

first write the above logic before the tables and add the condition lv_Flag = 'X' in one table conditions tab and in another table lv_flag = ' ' condition in conditions tab.

Thanks,

Sree



hai Everyone,

       I've created a smartform with two table, my recuirement is that,

      i should show only one table when a condition match,

For E.g

if  <condition_true>

      First table

elseif<condition_true>

      Second table.

Its should show either one table as for the condition matches.

How can i achive this.??

12 REPLIES 12
Read only

Former Member
0 Likes
1,995

Hi,

create 2 tables and add the conditions in table conditions tab.

for ex.

if  <condition_true>

      lv_flag = 'X'.

elseif<condition_true>

      lv_flage = '  '.

first write the above logic before the tables and add the condition lv_Flag = 'X' in one table conditions tab and in another table lv_flag = ' ' condition in conditions tab.

Thanks,

Sree


Read only

0 Likes
1,994

Hai Sreedevi,

         In the particular data elements has Value Ranges, if it has 1 and 5 then it should call the one table else case its should call an another table,

in a table condition i can give either 1 or 5 right, but my situation it should call the table for 1 and 5

Thanks

Read only

0 Likes
1,994

H Joy,

please set the flag for 1 and 5.

ex:

if <field_value> eq '1'  or <field_value> eq '5'.

lv_flag = 'X'.

else.

lv_flag = ' '.

endif.

put the flag condition in table conditions tab.


Thanks,

Sree

Read only

0 Likes
1,994

Thank You Sreedevi..

Read only

Former Member
0 Likes
1,994

Hi Joy,

Both table have a 'CONDITION' tab, right? Just input you condition there.

regards,

Archer

Read only

0 Likes
1,994

hey Dengyong,

  yes you are correct, but my fields shoyld match with AND condition because it has value ranges.

thank You

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,994

Did you try to add your condition in the Condition tab of the Table/Loop node or to create an Alternative node ?

Regards,

Raymond

Read only

0 Likes
1,994

Yeah Mr. Raymond i gave that already

Read only

0 Likes
1,994

Polu  and look better at Condition tab, there is an icon to add a "OR" condition (the second from right)

Regards,

Raymond

Read only

0 Likes
1,994

Thanks Raymond

Read only

archanapawar
Contributor
0 Likes
1,994

Hi,

You can create an alternative condition in your window.

Flow logic -> Alternative.

Provide you condition here and you can put your internal tables in True and false accordingly.

Read only

0 Likes
1,994

hai archana,

In the particular data elements has Value Ranges, if it has 1 and 5 then it should call the one table else case its should call an another table,

in a table condition i can give either 1 or 5 right, but my situation it should call the table for 1 and 5

Thanks