Servoy / smartDocumentEditor

0 stars 2 forks source link

if you have 2 relations on the same table with different conditions you only get one repeater with the table name #9

Open saleman67 opened 1 year ago

saleman67 commented 1 year ago
    //post text
        .addField('tbl_quotation_main_to_tbl_jt_tbl_text_block$post.pk_jt_text_block_id', 'PostPK', true)
.addField('tbl_quotation_main_to_tbl_jt_tbl_text_block$post.tbl_jt_tbl_text_block_to_tbl_text_block.tbl_text_block_to_tbl_text_block_translation$current_language.d_title', 'Text_block_post_title', false)
        .addField('tbl_quotation_main_to_tbl_jt_tbl_text_block$post.tbl_jt_tbl_text_block_to_tbl_text_block.tbl_text_block_to_tbl_text_block_translation$current_language.d_text', 'Text_block_post_text', false)
        //pre text
        .addField('tbl_quotation_main_to_tbl_jt_tbl_text_block$pre.pk_jt_text_block_id', 'PrePK', true)
.addField('tbl_quotation_main_to_tbl_jt_tbl_text_block$pre.tbl_jt_tbl_text_block_to_tbl_text_block.tbl_text_block_to_tbl_text_block_translation$current_language.d_title', 'Text_block_pre_title', false)
        .addField('tbl_quotation_main_to_tbl_jt_tbl_text_block$pre.tbl_jt_tbl_text_block_to_tbl_text_block.tbl_text_block_to_tbl_text_block_translation$current_language.d_text', 'Text_block_pre_text', false)

See above code, I try to use 2 repeater on one table but I get only one repeater. I think ik would be a good option if you can make repeaters and give them names.

I also think the endrepeater should get a name, because if you use a few in a template they get mixed up and the whole template breaks