How does Backend created asset submits the form


(Firewall Breaker) #1

I have created a cutom assest by extending from page.


My paint function is working alright by displaying what i want.



But i don't know how the processFn works.



I mean if i have one submit button in paint layout how that cna call the processFn


(Mark Brydon) #2

[quote]
I have created a cutom assest by extending from page.



My paint function is working alright by displaying what i want.



But i don't know how the processFn works.



I mean if i have one submit button in paint layout how that cna call the processFn

[/quote]

The process function must be defined in your XML and screen files, and within the …edit_fns.inc file.

Assets with attributes which require extra processing when hitting "Commit" use these. There are existing examples within Matrix from which to learn how to set one up to perform your intended processing.



As for your particular asset type and form submit button - please provide a description of what you are trying to achieve so we can provide a more detailed response.


(Firewall Breaker) #3

Actually i have used the paintFunction() to display e,g a form with three fields. I am not using any "attributes" using MySource Matrix build in functions.


I have manually done connection with database and used simple php to display the form.

I have submit button at the end of form.





Now i don't know how to link that button with processFunctions.



I mean if i have echo "Hello" in processFunction . I want that when someone click on submit button it display hello on next screen . Is it possible