LIST_TABLE_START Inside a Form [SOLVED]

If you have questions or if you want to share your opinion about Aware IM post your message on this forum
Post Reply
Pomegranate
Posts: 33
Joined: Sun Jul 16, 2017 11:53 pm
Location: Mongolia, Ulaanbaatar

LIST_TABLE_START Inside a Form [SOLVED]

Post by Pomegranate »

Hello gang,

Has anyone ever been able to use LIST_TABLE_START inside a form before? Or have tried something similar?

I wanted to use LIST_TABLE_START because it can find context as such and allows me to create any type of structure I want,

Code: Select all

<<LIST_TABLE_START('FIND SOMETHING WHERE SOMETHING') >>
	<<SOMETHING.SOMETHING>>
	<<SOMETHING.SOMETHING22>>
<<LIST_TABLE_END()>>
This would also work really well if I wanted to get nested records such as

Code: Select all

<<LIST_TABLE_START('FIND SOMETHING WHERE SOMETHING') >>
<<SOMETHING.SOMETHING>>
<<SOMETHING.SOMETHING22>>
	<<LIST_TABLE_START('FIND SOMETHING2 WHERE SOMETHING2') >>
		<<SOMETHING2.SOMETHING>>
		<<SOMETHING2.SOMETHING22>>
	<<LIST_TABLE_END()>>
<<LIST_TABLE_END()>>
Please help :)
Last edited by Pomegranate on Fri Nov 04, 2022 6:32 am, edited 1 time in total.
PointsWell
Posts: 1457
Joined: Tue Jan 24, 2017 5:51 am
Location: 'Stralya

Re: LIST_TABLE_START Inside a Form

Post by PointsWell »

LIST_TABLE_START is a report / MS Doc only function. I don't believe it can be used within a form, but it would be useful if it could be used there. Add it to the Wish List as a feature request.
Pomegranate
Posts: 33
Joined: Sun Jul 16, 2017 11:53 pm
Location: Mongolia, Ulaanbaatar

Re: LIST_TABLE_START Inside a Form

Post by Pomegranate »

If anyone is interested, we(our junior developer) found a solution for this.

We gave the Parent and ID and Classes for the Children, and with some Javascript, we got all of the children with queryselectorall and childappended the children variable into the parent element by finding it with its ID.

Code: Select all

setTimeout(function(){
	var answers = document.querySelectorAll(".a{ID}");
        var questions = document.querySelector("#q{ID}");
        answers.forEach((answer) => {
            questions.appendChild(answer);
        });
}, 500);
Post Reply