I have this dynamic card. Now i want to get all text values like que, option a, option b, option c, option d,ans from cliked dynamice card and make a pdf but i failed .i just got the card id . please suggest some block idea
these dynamic labels also have an
unique id just check the
Create label block
you’ll found the that unique id of each label…
now if you check there is another block Get label text by id now use ids to get the specific text of label
these lables are in dynamic card when i click it give me only card id
these labels are dynamic?
Yes this lables are dynamic
In a card view 5lables
Que ,opt1,opt2,opt3,opt4 and answer
I want all lables text and make it to pdf
show me blocks…
where you creating the dynamic labels?
Tip : Give same id number with join text to all child components according to parent component that pressable with some prefix or suffix text …
joinText{parent + id}
joinText{quesA + id}
that + for joining text not for adding​
…
eg
{ parent1 {
questA1,questB1,questC1
} parent2 {
questA2,questB2,questC3
} …
parent30 {
questA30,questB30,questC30
}
suppose you want to Get text of questA20
then Use block
Get Component by id now you will got parent20 now just replace
parent to questA
then it will becomes questA20 and now you got the id of quest no of 20 to get text, visible etc
NOT WORKING
set vertical aarangemne clikable.
i using android builder platform is that any change for that
@Professional
@Still-learning
on clicking the material card try to catch the id of the clicked component in a lable ans show us the result. also Did you set the vertical arrangement clickable?if yes, set to disable and try
While using card view when i click any card it give me card id only like material [email protected] couldnt get how to set up blocks to get all label text on that perticular card bcos i m making mcq app so on evry card there are 1que 4options and 1 ans in text value
While using vertical arrnagemnt as suggested by @Professional i did not get anything return on click . Click not repond i think … Cheked with full clikble , clickable and long clikable property to set true and false also.
Is this showing as id? May be your topic will delisted soon because you are trying in another platform but asking question in differetn platform, but anyhow this is the logic…
on cardview click, get the id the clicked card id— it should show number only (global id) as per your previous block
thats why i suggested my earlier blocks… also i have noticed that, in your previous block you have used title = global id and
but in the error image why did you add this text tital insted if title. If so you will get such error because there is no dynamic label element with that id
So, finally your error is logical one
This dynamic arrangment i copied from community and did minor changes to show my que n ans .dnt know more about coding. So to get uniq id some one have explain to set such join block for id so i made same. For lable 1 i put title, for lable 2 i put L2 etc nd join with globle id block
Did you correct it? test it?
As shown in your suggested blocks i did same.i m sorry but i dng know much about coding
So i keep tht title block…is there anything else i should put?
Any veriable?
i just give you idea how to do…how to manage child ids according to parent component… i have checked now in your case Parent component is Material Card
i have told you that give aa+1,2,3,4… id to parent component that is Your Material Card Not Vertical Ar… just change MaterialCard id to aa+1,2,3,4… And Vertical Arrangemnt id to va+1,2,3…
Coding Knowledge is not important here. But use correct spelling. Insted of tital use title and test
Ohhh couldn’t recognise that let me check