Hello again,
I have a page called sales with a relation to page companies
and a sales transaction page with.
Later in the sales page I have
This will give the result when I use <cms:show client_id/> of the number 157 .
Now I tried to set this in a form to the relation like this;
Somehow this invoice="<cms:show client_id/>" isn't working, however when i set this to invoice='157' it works fine.. I tried all kinds of formatting options to get the show client_id working (cms:number_format) but didn't seem to work also.
What I'm doing wrong here ?
I have a page called sales with a relation to page companies
- Code: Select all
<cms:editable type='relation' name='company' masterpage='companies.php' has='one' />
and a sales transaction page with.
- Code: Select all
<cms:editable type='relation' name='invoice' masterpage='sales.php' has='one'> </cms:editable>
Later in the sales page I have
- Code: Select all
<cms:related_pages 'company' masterpage='companies.php' >
<cms:set client_id="<cms:show k_page_id />" 'global'/><!-- For use in new order line form -->
</cms:related_pages>
This will give the result when I use <cms:show client_id/> of the number 157 .
Now I tried to set this in a form to the relation like this;
- Code: Select all
<cms:form
masterpage='sales_transactions.php'
mode='create'
enctype='multipart/form-data'
method='post'
anchor='0'
>
<cms:if k_success >
<cms:set line_price = "<cms:show frm_price/>"/>
<cms:set line_amount = "<cms:show frm_amount/>"/>
<cms:set total_price = "<cms:mul line_price line_amount/>"/>
<cms:db_persist_form
_invalidate_cache='0'
k_page_title="<cms:show sa/><cms:show sa_no/>-<cms:show frm_item/>"
invoice_no="<cms:show sa_no/>"
total="<cms:show total_price/>"
invoice="<cms:show client_id/>"
/>
Somehow this invoice="<cms:show client_id/>" isn't working, however when i set this to invoice='157' it works fine.. I tried all kinds of formatting options to get the show client_id working (cms:number_format) but didn't seem to work also.
What I'm doing wrong here ?