64
Views
7
Comments
Solved
Logic for iterating button text
Question

hello people  

I am trying to create a set of buttons/box(not specific), could be 6-7 buttons with empty names. so when I press any button it should name it as 1 and next button pressed should be 2 and so on, but if I press any button which already numbered it should make it empty and also renumber all the button which are after him.

i.e. i have pressed 1,2,3,4,5,6 so if press '3' button .. it will rename 3 as empty and renumber 4,5,6 to 3,4,5 respectively. how should I approach

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
Solution

Did you take the training? If not, please do so - you cannot expect to understand a tool if you don't take at least some basic training.

2025-01-09 14-56-57
IQ78

# put the button widgets as many as you want

# set each of the label as an expression

# ajax refresh and change the expression when you click a button 

2025-05-08 07-42-17
Vikas Chauhan

brrrr wrote:

# put the button widgets as many as you want

# set each of the label as an expression

# ajax refresh and change the expression when you click a button 


Label as expression?

and if the button is already numbered than? that's the main part

2018-06-05 16-54-03
Maria da Graça Peixoto

Hi! 

That is an interesting exercise. 

Have you thought in build it as a list of buttons? 

The buttons label can be the content of a variable and the widget 

can update it with a new value

Regards

Graça

2025-05-08 07-42-17
Vikas Chauhan

Maria da Graça Peixoto wrote:

Hi! 

That is an interesting exercise. 

Have you thought in build it as a list of buttons? 

The buttons label can be the content of a variable and the widget 

can update it with a new value

Regards

Graça

yes I thought it to use it as list only but the issue is  for when we press the button which is already numbered so we have to  decrement all the following number after it


2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Vikas,

You'll have to remember somewhere what the number is. But that's basic programming, not very OutSystems-specific. This forum is about "how to do stuff with OutSystems", not "how to do generic programming stuff".

2025-05-08 07-42-17
Vikas Chauhan

Kilian Hekhuis wrote:

Hi Vikas,

You'll have to remember somewhere what the number is. But that's basic programming, not very OutSystems-specific. This forum is about "how to do stuff with OutSystems", not "how to do generic programming stuff".


I don't know how to perform this basic programming IN outsystem. can you help?

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP
Solution

Did you take the training? If not, please do so - you cannot expect to understand a tool if you don't take at least some basic training.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.