Hi ;

i had created my own special fields and user can select from question and the result of this special field is also capturing data from survey

The only problem i am facing now is it is now showing up in consolidated report view and also it is not being exported in the CSV export result

Can please point to me which part of the creation process i had miss out to populate

Thank you in advance

17156_1_CustomField_NoShow.jpg (You do not have access to download this file.)
Like it on Facebook, Tweet it or share this topic on other bookmarking websites.
  • Re: Special Fields Not Showing In Report and CSV

    by » 4 weeks ago


    In your consolidated report question layout file (layouts/LAYOUT/reports/consolidated/), add a var_dump and see what data getting populated. This way you can understand what you missed.

    var_dump($displayData['item']);

    CSV report is generated from getCsvData function in administrator/components/com_communitysurveys/models/reports.php 


    Follow me on twitter: https://twitter.com/corejoomla
    If you use our extensions, please post a rating and a review at the Joomla! Extensions Directory.
    CjFitCjForum | Polls | Answers | Quizzes | Quotes | Surveys | GPS Tools | CjBlog


    Thank you said by: teojerah

  • Re: Special Fields Not Showing In Report and CSV

    by » 4 weeks ago


    For the display part in consolidated and individual response ; need to add the additional special field to the following files

    LAYOUTNAME/reports/consolidated (consolidated.php > add CS_SPECIAL_DEPT => 'dept',)

    LAYOUTNAME/results folders (question.php ,add CS_SPECIAL_SAPNO => 'sapno',)

    For the csv export ;

    inside the administrator/components/com_communitysurveys/models/reports.php 

    In the getCsvData function ;

    need to add the following ;

      $headers[] = JText::_('COM_COMMUNITYSURVEYS_CSV_HEADER_DEPT');
      $headers[] = JText::_('COM_COMMUNITYSURVEYS_CSV_HEADER_SAPNO');

       $responseArray[] = $response->sapno;
       $responseArray[] = $response->dept;

    and

        case CS_SPECIAL_DEPT: // Special - Name
        case CS_SPECIAL_SAPNO: // Special - Name

     


You do not have permissions to reply to this topic.

Powered by CjForum

Site Search

Trending Topics

GPX Tracks Module
  • 1 reply
- Add cluster to  GPX Tracks Module - When a category is...

Default marker for all categories
  • 1 reply
Hi, In GPS tools / Category / GPS Options I can select the default...

Translation of "Topic-Date
  • 2 replies
Hi Maverick I found another translation issue and that is the...

plg cbcjforum
  • 4 replies
Hi How can I translate the plugin cbcjforum in to my language?

Upload Track button not working
  • 5 replies
Hallo, I have a problem uploading new gps tracks. Clicking on the...

Subscribe Newsletter