cancel
Showing results for 
Search instead for 
Did you mean: 

Row Repeater UI Element issue.

Former Member
0 Kudos

Hi,

I used row repeater in my view. The UI element under Row Repeater in Input Field. The initial visible row is been set to 3. In the UI i see these 3 Input Fields but when i test it, its not there, visible.

Any specific Attribute i need to set. Please help

Regards

Piyush

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

I created one rowrepeater which is to display two fields BURKS and BUTXT.

I created a node with two attributes from T001 and bound the Node to the rowrepeater's dataSource.

Add two( for example ) TextViews for displaying the data ( you can add InputFields also ) to the rowrepeater.

Set the width property of your rowrepeater to the min of 400 px with visible row count as 10.

I wrote a supply function for populating the data.

Wish that helps.

Regards,

Prosenjit.

TomVanDoo
Active Contributor
0 Kudos

the row repeater is an alternative to a table

it represents a collection of elements

you have to bind your rowrepeater to a table type context node (cardinality 0-n or 1-n)

for each element in the context node, the rowrepeater will repeat the defined content.

if you do not see any data or elements on the screen, than this is because there is no data in your context node.

Former Member
0 Kudos

Hi,

I have INPUTFIELD as UI Element under Row Repeater.

I have to take input from the user and then write it in to context.

Regards

Piyush

TomVanDoo
Active Contributor
0 Kudos

This is something you cannot do.

the rowrepeater will not create instances for elements that don't exist yet in the context.

What you can do, is create a supply function for your context node, which will fill it up with three empty elements.

data: lt_empty type wd_this->elements_node,

ls_empty type wd_this->element_node.

append ls_empty to lt_empty.

append ls_empty to lt_empty.

append ls_empty to lt_empty.

node->bind_table(lt_empty).

This isn't the cleanest solution, but it'll do the trick

Former Member
0 Kudos

Hi,

It doesnt solve the problem.

I cant see the UI Elements on the screen yet.

Regards,

Piyush

TomVanDoo
Active Contributor
0 Kudos

is your row repeater's data source bound to your context node?

Former Member
0 Kudos

yes it is

TomVanDoo
Active Contributor
0 Kudos

ok, let's get an overview of the situation

You have a rowrepeater with the datasource attribute bound to your contextnode

underneath the rowrepeater you have a UI element with the value bound to the contextnode's attribute.

Your contextnode has a supply method which adds three empty rows into the contextnode.

_________________________________________________________________

rowrepeater - datasource --> contextnode

|_ UI element - datasource --> contextnode-attribute

the context node contains records (empty records, but they must be there)

_________________________________________________________________

activate the whole bunch

it must work

there is no reason why it shouldn't

if not, debug the supply method to make sure that there is actually a collection in there.