• Resolved wilfried1954

    (@wilfried1954)


    Hello,

    I use CFF for some calculating. I needed to make a report from the input. But the report is completely different from the things to show in the form. The report should be a MS Word document to download and nothing to display in browser, I just need a download button.

    The plugins for reporting are for this case not usable. On the other hand there is nothing to find about creating pages in PHP without creating a template page.

    And in fact this is all so very simple. Only a little knowledge of HTML and PHP is needed.

    Should I make an article in the forum? Or should I mail it to you to evaluate and take it into the FAQ?

    Best regards, Wilfried

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello @wilfried1954

    If you want sharing your code, please, do not hesitate in contact me through my private website: Contact Us

    Best regards.

    Thread Starter wilfried1954

    (@wilfried1954)

    Thank you.

    Yes I want to share my code solution, I do this because you give excellent service, even for users that use the free version. I think if users have solutions for their problems, I feel it is a must to share also.

    Just my personal opinion.

    I contact you on the link you give, and ask for instructions.

    Best regards, Wilfried

    Plugin Author codepeople

    (@codepeople)

    Hello @wilfried1954

    If you want call an URL from the plugin, passing to it a parameter, you can use the “redirectToURL” operation included with the “URL Operations” module (https://cff.dwbooster.com/documentation#url-module), for example, using the following piece of code as the equation associated to a calculated field:

    
    redirectToURL('https://www.website.com/',{firstname: fieldname1, lastname: fieldname2})
    

    Or if you want call it from a button (you cannot access to the fields values directly by their names from buttons), the previous code should be edited as follows:

    
    redirectToURL('https://www.website.com/',{firstname: jQuery('[id*=""fieldname1_"]').val(), lastname: jQuery('[id*=""fieldname2_"]').val()});
    

    Best regards.

    Thread Starter wilfried1954

    (@wilfried1954)

    Hi,

    Thank you. Seems an alterative and more simple way to handle the complete url with parameters in code.

    Regards, Wilfried

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Creating a report to print in code’ is closed to new replies.