Coded something up in Couch in an interesting way? Have a snippet or shortcode to share? Post it here for the community to benefit.
52 posts Page 6 of 6
Previous 1, 2, 3, 4, 5, 6 Next
@KK Sir,

:)

Regards,
GXCPL (Priya)
Image
where innovation meets technology
Was This ever resolved @KK sir im trying to set a RR region using db_persist.

i followed the code on how to do it with db_persist_form and works correct. is there something different about its counterpart db_persist?



here is my code.

Code: Select all

<cms:set p_id_project="<cms:gpc 'p_id' scope='global'/> " />
<cms:set title="<cms:gpc 'f_k_page_title' scope='global'/> " />
<cms:set trans="<cms:gpc 'f_related_trans_2' scope='global'/> " />
<cms:set d_idle="<cms:gpc 'f_line_d_idle' scope='global'/> " />
<cms:set d_stall="<cms:gpc 'f_line_d_stall' scope='global'/> " />
<cms:set r_stall="<cms:gpc 'f_line_r_stall' scope='global'/> " />
<cms:set r_idle="<cms:gpc 'f_line_r_idle' scope='global'/> " />
<cms:set e_min="<cms:gpc 'f_epc_min' scope='global'/> " />
<cms:set e_max="<cms:gpc 'f_epc_max' scope='global'/> " />
<cms:set av="<cms:gpc 'f_available' scope='global'/>"/>
<cms:set fit="<cms:gpc 'f_fits' scope='global'/>"/>
<cms:set inc="<cms:gpc 'f_includes' scope='global'/>"/>
<cms:set feat="<cms:gpc 'f_features' scope='global'/>"/>
<cms:set e_notes="<cms:gpc 'f_eng_notes' scope='global'/>"/>


<cms:capture into='existing_bom' is_json="1">
    <cms:pages masterpage="rnd/projects.php" id="60764">
        <cms:show_repeatable 'bom' as_json="1"/>
    </cms:pages>
</cms:capture>

<cms:capture into="existing_bom." is_json="1">

        {
            "part_number":<cms:escape_json>blah data</cms:escape_json>,
            "description":<cms:escape_json>blah data</cms:escape_json>,
            "qty":<cms:escape_json>blah data</cms:escape_json>,
            "status":<cms:escape_json>Not Drawn</cms:escape_json>,
            "last":<cms:escape_json>blah data</cms:escape_json>

        }
       
</cms:capture>








<cms:db_persist
_masterpage="rnd/projects.php"
_mode="edit"
_page_id="60764"
k_page_title="9T40-PR"
related_trans_2="<cms:show trans/>"
line_d_idle="200"
line_d_stall="<cms:show d_stall/>"
line_r_idle="<cms:show r_idle/>"
line_r_stall="<cms:show r_stall/>"
epc_min="<cms:show e_min/>"
epc_max="<cms:show e_max/>"
available="<cms:show av/>"
fits="<cms:show fit/>"
includes="<cms:show inc/>"
features="<cms:show feat/>"
eng_notes="<cms:show e_notes/>"
bom="<cms:show existing_bom/>"
>


<cms:dump/>


</cms:db_persist>
Previous 1, 2, 3, 4, 5, 6 Next
52 posts Page 6 of 6