Question regarding the child table

Can you tell me what i am missing?

I have a content type E1 which has a child table Child_E1.
Child_E1 has various fields which can be “name1” “description” “filetype” a field “upload” which is used to upload any pdf or doc files.

I have created a template “Template1” which calls $rx.location.generation(assembly, “binarytemplate”)
In the “binarytemplate” i set up the “sys.binary” and “sys.mimetype” using
$rx.asmhelper.childValues($sys.item,‘Child_E1’,‘upload’) for “the file”
$rx.asmhelper.childValues($sys.item,‘Child_E1’,‘filemimetype’)

But when i run the code, i get an error which indicates that sys.binary is empty.

Am i missing something.

rx.asmhelper.childValues is suppose to pull out the content of the fields “upload” and “filemimetype”?

Do you have other alternative.

Kindly advise

Hi,

This Thread might help.

basically something like this for the sys.binary binding:

$rx.asmhelper.childValues($sys.item,'ChildTableName','UploadFieldName').get(0)

-n

[QUOTE=veronique;21087]Can you tell me what i am missing?

I have a content type E1 which has a child table Child_E1.
Child_E1 has various fields which can be “name1” “description” “filetype” a field “upload” which is used to upload any pdf or doc files.

I have created a template “Template1” which calls $rx.location.generation(assembly, “binarytemplate”)
In the “binarytemplate” i set up the “sys.binary” and “sys.mimetype” using
$rx.asmhelper.childValues($sys.item,‘Child_E1’,‘upload’) for “the file”
$rx.asmhelper.childValues($sys.item,‘Child_E1’,‘filemimetype’)

But when i run the code, i get an error which indicates that sys.binary is empty.

Am i missing something.

rx.asmhelper.childValues is suppose to pull out the content of the fields “upload” and “filemimetype”?

Do you have other alternative.

Kindly advise[/QUOTE]

Thank you so Much… that does it.

It is working now…

Kind Regards