Hi,
Is there a way to display the value of datacardvalue1 in a text input that is displayed in browsegallery.
the idea would be that the user can edit this and submit it and make a change to the existing text, (if it existing text exists).
ive treid doing DataCardValue1 in the default property of the text input, however this displays the text from my one record in all my records in browsegallery. I need it to show the individual record text that could already exist.
thanks.
@EddieE i deleted teh box and reinserted.. I seem to be able to get all the values for each record doing this in default of the text input -
If(IsBlank(ThisItem.'Field Comment'), "Write a comment after marking as complete.", ThisItem.'Field Comment')
results look okay -
What is the Default of the TextInput control? It should be something like
If( gblRecordID = ThisItem.ID, DataCardValue35_1.Text, ThisItem.Comment)
// change .Comment to your field name
@EddieE looks to be working but seems like the text only comes up when I click into the text input. Is there a way to just show it before clicking the input box?
You are mixing up the variable gblRecordID - making it a single field and also a FULL record - with you various OnSelect code. You need to choose one or the other.
eg
// Browse gallery OnSelect
Set( gblRecordID, ThisItem.ID);
// TextInput OnSelect
Select(Parent);
All your other code should work then.
ok getting closer.. upon further testing...
Default of Text INput on my browse gallery...
now trying it like this - this only gets my latest access ID -
BrowseGallery1 - OnSelect .. This one may not be needed? Let me know.. i think i mistakenly put this here..
TextInput on browsegallery... : OnSelect - Error -
TextInput on browsegallery : Default - Error
DataCardValue35_1 is the datacard for the comment I want to show (if it exists already)
EditForm1_1 - Item Property
I cannot see where the issue is with your code, can you share some screenshots of what is happening.
@EddieE thanks for this.
I have this in my brwose gallery OnSelect --
Set(
gblRecordID,
ThisItem.ID
)
I already have this in my OnSelect Gallery TEXT INPUT --
Set(gblRecordID ,ThisItem)
and default of TEXT INPUT -
If( gblRecordID = ThisItem.ID, DataCardValue35_1.Text, "test")
and I have this in the item in my Edit Form
LookUp('Data Source',ID=gblRecordID)
can you help me adjust this?
An EditForm only holds 1 record, whereas a gallery holds many records. This is why your TextInput shows the same value in all the TextInput fields in the gallery. You need a way to reference the one record you want to adjust.
You could try this
1. OnSelect of gallery item
Set( vRecord, ThisItem)
2. Set the Form Item to
vRecord
3. Default of the Text Input
If( vRecord.ID = ThisItem.ID, DataCardValue1.Text, ThisItem.yourTextFieldName )
WarrenBelz
146,522
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,890
Most Valuable Professional