@iagosalvadori ,
I am not sure what you are asking - we did not change your gallery and it should not be affected and certainly not by the code change at App OnStart (I assume this is where you code is).
You have set a record as a Variable - can you please consider this approach. At App OnStart
Set(
VarlD;
Value(Param("DespID"))
);;
If(
VarlD>0;
Navigate(MinhasDespesas)
)
On your Gallery OnSelect
Set(VarID,ThisItem.ID);;
Navigate(MinhasDespesas)
On the Item of your Form
LookUp(
Despesas.ID; //why is this not Despesas without the ID?
ID=VarlD
)
Then you actually have the record retrieved from the data source. - note the comment above as well (I was using your code)
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.