hi,
i have dropdown and variable set to local variable, but if click save value not saved in database, how to value local variable save to database?..
Hi,You can find in the attachment.With best regards,F.Karatay
Ferhat Karatay wrote:
oke thanks ferhat.
Hi Ahmad Zaenal Awaludin,
Can you show the screenshot of the action SaveOnClick? You have to set a CreateOrUpdate Entity action to store the selected dropdown value. The selected dropdown value stored in the Local Variable would Room.Id as you have set Value of the dropdown as Room.Id.
Regards,
Manthan Shah.
Manthan Shah wrote:
Hi Manthan below screenshot action save on click
i have condition check room booking or not by RoomId local variable, and if room not booking iwant to save Roomid local variable to database
Ahmad Zaenal Awaludin wrote:
Use the aggregate of Room Entity and assign a filter to it like Room.Id = RoomId(Local Variable) . Hope this helps.
oke this no problem, problem is RoomId(Local Variable) not save to database. and i confuse
Did you put the aggregate as I told with the filter ? and In the Create and Update action in RoomId(Column of the entity) put the aggregate's Id in it. This will save your room id.
Hi Ahmad,You don't need to use a local variable.You should use your RoomId foreign key from the booking entity. If you really need to use a local variable, you should set record's RoomId foreign key from your local variable before you save.With best regards,F.Karatay
Hi Ahmad,You don't need to use a local variable.You should use your RoomId foreign key from the booking entity.If you really need to use a local variable, you should set record's RoomId foreign key from your local variable before you save.With best regards,F.Karatay
Hi Ferhat
any tutorial for set record's RoomId foreign key from local variable
Hi Ahmad,You can download an example here; https://we.tl/t-nWp2EnnPXnHowever, I also strongly suggest you watch learn materials. They are very useful to learn.
With best regards,F.Karatay
Hi Ferhat,
oke, then from the example how to check if the room has been booked or not before save?..
Hi Ahmad,
hi ferhat,
can i get example.oml for this tutorial?.. thanks