Hello again,
Today I tried to work in a Stock Manager but, after 6 hours of testing and trying, I am here asking help another day
I want to change color between these 4 posibilities
Thank you guys for heping me another day
Hello again,
Today I tried to work in a Stock Manager but, after 6 hours of testing and trying, I am here asking help another day
I want to change color between these 4 posibilities
Thank you guys for heping me another day
Iâm not entirely sure what youâre asking hereâŚ
But broadly speaking, if youâre asking about storing and setting dynamic colours, the simplest way will be to use an option set.
Iâd create an option set for Availability, with 4 options (Available, Little Stock, not Available, and Doesnât Exist), with an attribute for Colour (of type text) which will be the hex code of the colour you want.
Then just refer to the option set options according.
Thank you for helping @adamhholmes.
I tried yesterday and I made some advances but I am not able to change a field of thing in he database to change de colour. I show you with screeshots now.
First of all, I made an option set lilke you proposed me
I made mi thing to save in the database and added the field.
I created some things and tried to change some fields.
When we go to Design I made a Repeating Group with that thing, in the example âEmpanadasâ
I made a Text to the name of thing and a shape which will change the colour with the Disponibilidad Field.
Changing the field is made for a Popup with different shapes.
And now I have the problem. I did this in the workflow but it doesnât work
Now, when I click in some colour shape of the popup anything happens. If we read the debugger we can see that it âworksâ but anything change. I try to change the colour modifying Database while is running and It works.
And Itâs still black. Whatâs wrong in the app? Could you help me please?
PS: I upload a lot of screenshots to be clear with the explanation.
Another time I thank you helping me! ^^
Iâm not entirely sure what youâre doing there to be honestâŚ
You shouldnât need any conditionals to change the colours (thatâs what he option set is for)âŚ
There are a few approaches you could take for thisâŚ
One is to have a field in the database (as youâve done here), and just change it accordingly when the stock levels reach a certain level. Then itâs as simple as setting the colour to be the Thingâs Stock Level (option set) colour.
Alternatively, you can do away with saving anything in the database, and just use conditionals on the page to define the colour based on the Thingâs current stock level.
I.e. youâd need to have an attribute on each option in the option set do define the stock level for that particular option (maybe 2 number attributes - 1 for min and 1 for max)
Then just set the colour on the page to âget an optionâ, use All Options: filtered, and filter it by the Thingâs current stock level - then set the colour to the option setâs colour attribute.
There are probably other ways to do it as well (especially if you want to have different stock levels defined as the different option for different things) but those are the basic ways to investigate.
Hello again,
I want to build a web which change the color of each cell according stock of that product but It will be changed manually for a worker.
One is to have a field in the database (as youâve done here), and just change it accordingly when the stock levels reach a certain level. Then itâs as simple as setting the colour to be the Thingâs Stock Level (option set) colour.
Is that what are you telling about? Thatâs make when I press a shape I should change the Field Disponibilidad of associatedThing but it doesnât work. And I donât know why to be honest.
If Itâs wrong could you tell or link me something that can help me? I watched videos and read webs but I should be so silly
Thank you another time for your patience, I really aprreciate it