Custom Item template errors

All reports created for out company have a generic layout. I created a default item template for Visual Studio for adding a Crystal Report (portrait or landscape) with the default lay-out. When I add a new report using this template some errors are raised:
1) After the item is created the following error is shown "Failed to save document.". When I click on the save button, the same error is shown all the time. The problem is solved when I close my new report immediately after creating it and then open it again.
2) In my item template I use two images. After creating a new report, these images are not visible immediately. The images become visible after I closed the report and then open it again.
Perhaps these to issues are related to eachother. I have a valid workaround, but can somebody explain why these error occurs and perhaps als have a solution for this?

Hello Alex,
You'll need to specify the version of Visual Studio that you're using, as well as the version of Crystal Reports.
Once you've clarified your development environment someone may be able to offer some suggestions.
Sincerely,
Dan Kelleher

Similar Messages

  • Custom Administrative Template Error 53 Key name specified more than once

    Hi All,
    Hope I've picked the correct forum. I am making my first foray into setting up a custom administrative template for some software that is developed in house. The current deployment method is to merge a reg file on each computer that requires the registry
    settings. I am trying to set this up so that it is controlled via GPO.
    My idea is that in the a GP can set the registry settings for one or more areas that are controlled by the software. 
    The problem I have - I get Error 53 Keyname specified more than once on Line 9 (second KEYNAME). In total I will have about 30 different sites this needs to be set up for.
    Does this mean that I can't set more than one registry key per "Policy" setting in the GPO?
    The adm file I have so far is below
    TIA
    Jason
    ---------------------------------------------CUT---------------------------------------------
    CLASS User
    CATEGORY "App Site Settings"
    POLICY !!Site1Policy
    EXPLAIN !!Site1Explain
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    VALUENAME "SystemDatabase"
    VALUEON "D:\\App\\Data\\App.mdw"
    VALUEOFF DELETE
    KEYNAME "Software\ApplicationCompany\Site1\Arbitration"
    VALUENAME "ConfigPath"
    VALUEON "D:\\Site1\\Data"
    VALUEOFF DELETE
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    VALUENAME "ConfigFile"
    VALUEON "D:\\App\\Data\\App_Comms.mdb"
    VALUEOFF DELETE
    VALUENAME "SysConfig"
    VALUEON "D:\\Site1\\Data\\SITE1_SYS.mdb"
    VALUEOFF DELETE
    END POLICY
    POLICY !!Site2Policy
    EXPLAIN !!Site2Explain
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    VALUENAME "SystemDatabase"
    VALUE "D:\\App\\Data\\App.mdw"
    KEYNAME "Software\ApplicationCompany\Site2\Arbitration"
    VALUENAME "ConfigPath"
    VALUE "D:\\Site2\\Data"
    KEYNAME "Software\ApplicationCompany\Site2\Common Settings"
    VALUENAME "ConfigFile"
    VALUE "D:\\App\\Data\\App_Comms.mdb"
    VALUENAME "SysConfig"
    VALUE "D:\\Site2\\Data\\Site2_SYS.mdb"
    END POLICY
    END CATEGORY
    [strings]
    Site1Policy = "Site1 settings"
    Site1Explain = "Enabling this setting configures the registry settings for dummy Site1."
    Site2Policy = "Site2 settings"
    Site2Explain = "Enabling this setting configures the registry settings for dummy Site2."

    Well - I ended up sorting this out - and no - you can't have the Keyname keyword twice - unless you enclose the the setting in a PART statement. Below is what I ended up with:
    ---------------------------------------------CUT---------------------------------------------
    CLASS USER
    CATEGORY "ApplicationSettings"
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    POLICY !!SITE1Policy
    #if version >= 3
    EXPLAIN !!PolicyExplain
    #endif
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    PART !!ConfigFilePolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Common Settings"
    VALUENAME ConfigFile
    DEFAULT !!ConfigFileDefault
    END PART ;!!ConfigFilePolicy
    PART !!SystemDBPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Access"
    VALUENAME SystemDatabase
    DEFAULT !!SystemDBDefault
    END PART ;!!SystemDBPolicy
    PART !!SysConfigPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Common Setting"
    VALUENAME SysConfig
    DEFAULT !!SysConfigDefault
    END PART ;!!SysConfigPolicy
    PART !!ArbitrationPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site1\Arbitration"
    VALUENAME ConfigPath
    DEFAULT !!ArbitrationDefault
    END PART ;!!ArbitrationPolicy
    END POLICY
    POLICY !!SITE2Policy
    #if version >= 3
    EXPLAIN !!PolicyExplain
    #endif
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    PART !!ConfigFilePolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Common Settings"
    VALUENAME ConfigFile
    DEFAULT !!ConfigFileDefault
    END PART ;!!ConfigFilePolicy
    PART !!SystemDBPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Access"
    VALUENAME SystemDatabase
    DEFAULT !!SystemDBDefault
    END PART ;!!SystemDBPolicy
    PART !!SysConfigPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Common Setting"
    VALUENAME SysConfig
    DEFAULT !!SysConfigDefault
    END PART ;!!SysConfigPolicy
    PART !!ArbitrationPolicy EDITTEXT
    KEYNAME "Software\ApplicationCompany\Site2\Arbitration"
    VALUENAME ConfigPath
    DEFAULT !!ArbitrationDefault
    END PART ;!!ArbitrationPolicy
    END POLICY
    END CATEGORY
    [Strings]
    ArbitrationDefault =D:\SITE\Data
    ArbitrationPolicy =Arbitration path
    ConfigFileDefault =D:\App\Data\App_Comms.mdb
    ConfigFilePolicy =Application configuration file
    PolicyExplain =Enter Explainition of the Registry settings here
    SysConfigDefault =D:\SITE\Data\SITE1_SYS.mdb
    SysConfigPolicy =Application site system configuration file
    SystemDBDefault =D:\App\Data\App.mdw
    SystemDBPolicy =Application system database path
    SITE1Policy =Site1 Application Settings
    SITE2Policy =Site2 Application Settings

  • Managed property value is not returned in item template for ArticleStartDateOWSDATE

    Environment: SharePoint 2013 online
    Related parts: Search Result web part (OOB), Display template for search result items
    Base type: article page
    I have a search result page, it has a search result web part on it, for the display template, it is using a default for list, using  "single template to display items" option to point to a custom item template.
    The search returns list of articles, just title and abstract, it works fine. 
    We need to add "Article Date" to be displayed. "Article Date" is a OOB site column under "Publishing Columns".
    I found its field name is ArticleStartDate, then from search schema, I found the corresponding managed property name is "ArticleStartDateOWSDATE", the mapped crawled property is "ows_q_DATE_ArticleStartDate".
    In order to display it, I added managed property mapping to the item template to map to ArticleStartDateOWSDATE.
    The code is like,
    <mso:ManagedPropertyMapping msdt:dt="string">&#39;Title&#39;:&#39;Title&#39;,&#39;,&#39;MyArticleStartDate&#39;:&#39;ArticleStartDateOWSDATE&#39;</mso:ManagedPropertyMapping>
    var ArticleDate = $getItemValue(ctx, "MyArticleStartDate");
    The value of variable (ArticleDate) is empty when try to display it.
    Please let me know if you re-create this issue or have a solution to display the value. 
    BTW, on "Content search" web part, I can map ArticleStartDateOWSDATE to "Line 3", and display its value. So I know the managed property itself should be fine.
    Thanks in advance,
    John
    John Architect

    I think your input value is wrong,, when I did HTML decode of your Managed properties :
    &#39;Title&#39;:&#39;Title&#39;,&#39;,&#39;MyArticleStartDate&#39;:&#39;ArticleStartDateOWSDATE&#39;
    It gives :
    'Title':'Title',','MyArticleStartDate':'ArticleStartDateOWSDATE'
    i.e. wrong, if you see there is extra comma in between.
    try giving :
    &#39;Title&#39;:&#39;Title&#39;,&#39;MyArticleStartDate&#39;:&#39;ArticleStartDateOWSDATE&#39;
    or directly 'Title':'Title','MyArticleStartDate':'ArticleStartDateOWSDATE'
    get2pallav
    Please click "Propose As Answer" if this post solves your problem or "Vote As Helpful" if this post has been useful to you.

  • Custom display template for search

    HI 
    I have Created a custom Item Template as shown below.I want to map this with my custom result type but it is not working
    <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882">
    <head>
    <title>News Item</title>
    <!--[if gte mso 9]><xml>
    <mso:CustomDocumentProperties>
    <mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
    <mso:MasterPageDescription msdt:dt="string">$Resources:Microsoft.Office.Server.Search,DisplayTemplateDescription_SearchDefaultItem</mso:MasterPageDescription>
    <mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
    <mso:TargetControlType msdt:dt="string">;#SearchResults;#</mso:TargetControlType>
    <mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
    <mso:ManagedPropertyMapping msdt:dt="string">'Title':'Title','Path':'Path','Description':'Description','EditorOWSUSER':'EditorOWSUSER','LastModifiedTime':'LastModifiedTime','CollapsingStatus':'CollapsingStatus','DocId':'DocId','HitHighlightedSummary':'HitHighlightedSummary','HitHighlightedProperties':'HitHighlightedProperties','FileExtension':'FileExtension','ViewsLifeTime':'ViewsLifeTime','ParentLink':'ParentLink','FileType':'FileType','IsContainer':'IsContainer','SecondaryFileExtension':'SecondaryFileExtension','SEDWMPNewsPublishDate':'SEDWMPNewsPublishDate','DisplayAuthor':'DisplayAuthor1','SiteTitle':'SiteTitle'</mso:ManagedPropertyMapping>
    <mso:HtmlDesignConversionSucceeded msdt:dt="string">True</mso:HtmlDesignConversionSucceeded>
    <mso:CrawlerXSLFile msdt:dt="string"></mso:CrawlerXSLFile>
    <mso:HtmlDesignPreviewUrl msdt:dt="string"></mso:HtmlDesignPreviewUrl>
    </mso:CustomDocumentProperties>
    </xml><![endif]-->
    </head>
    <body>
    <div id="StoraEnso_Item_Default">
    <!--#_
    if(!$isNull(ctx.CurrentItem) && !$isNull(ctx.ClientControl)){
    var id = ctx.ClientControl.get_nextUniqueId();
    var itemId = id + Srch.U.Ids.item;
    var hoverId = id + Srch.U.Ids.hover;
    var hoverUrl = "~sitecollection/_catalogs/masterpage/Display Templates/Search/Item_Default_HoverPanel.js";
    $setResultItem(itemId, ctx.CurrentItem);
    if(ctx.CurrentItem.IsContainer){
    ctx.CurrentItem.csr_Icon = Srch.U.getFolderIconUrl();
    ctx.currentItem_ShowHoverPanelCallback = Srch.U.getShowHoverPanelCallback(itemId, hoverId, hoverUrl);
    ctx.currentItem_HideHoverPanelCallback = Srch.U.getHideHoverPanelCallback();
    _#-->
    <div id="_#= $htmlEncode(itemId) =#_" name="SEItem" data-displaytemplate="StoraEnsoDefaultItem" class="ms-srch-item" onmouseover="_#= ctx.currentItem_ShowHoverPanelCallback =#_" onmouseout="_#= ctx.currentItem_HideHoverPanelCallback =#_">
    <h2 class="heading"><a href="_#= ctx.CurrentItem.Path =#_">_#= ctx.CurrentItem.Title =#_</a></h2>
    <div id="_#= $htmlEncode(hoverId) =#_" class="ms-srch-hover-outerContainer"></div>
    <p>_#= Srch.U.processHHXML(ctx.CurrentItem.HitHighlightedSummary) =#_</p>
    <div class="footer">
    <dl class="desc">
    <dt>SiteTitle</dt> _#= ctx.CurrentItem.SEDWMPNewsPublishDate =#_
    <dd><a class="status" href="#">_#= ctx.CurrentItem.SiteTitle =#_</a></dd>
    <dt>Author</dt>
    <dd><a class="status" href="#">_#= ctx.CurrentItem.DisplayAuthor =#_</a></dd>
    </dl>
    </div>
    </div>
    <!--#_
    _#-->
    </div>
    </body>
    </html>
    If you see in "managedPropertyMapping" I have added a new property "SEDWMPNewsPublishDate" and when I use in my html I am not getting the value.
    I checked with fiddler and I found that This property is not getting mapped. Json object does return this property.However  this property has value. I have tested with content search webpart nad my code also.it returns value.
    Can anyone let me know is there any issue in the above rendering template code 
    On update to this, I was using resultscript webpart on the page to display data and I have created custom result type to modify the display.What I found that when I add the custom properties which I need, on result script webpart  using as
    follows 
     scriptWebPart.SelectedPropertiesJson = "[\"SEDWMPNewsPublishDate\",\"SEDWMPIntroduction\"]"
    and save the changes then I start getting the value of my custom properties.
    I don't know how the result type works in accordance with display templates and when does it gets applied on the search data.If anyone is aware please let me know.
    If I can't use the display templates with custom properties then what is the use of ManagedPropertyMapping on display templates.Can anyone please make me understand?

    You need to update the js file also.You can upload the js file also.In js file you have a column "ManagedPropertyMapping" this denotes which managed property should come for item in search.
    For uploading the js file you can use as follows under module
     <File Path="ModSearchDisplayTemplates\x.js" Url="x.js" Type="GhostableInLibrary">
          <Property Name="Title" Value="xjs" />
          <Property Name="MasterPageDescription" Value="$Resources:Microsoft.Office.Server.Search,DisplayTemplateDescription_SearchDefaultItem" />
          <Property Name="ContentType" Value="$Resources:TemplateContentType_Code_Name" />
          <Property Name="DisplayTemplateLevel" Value="Item" />
          <Property Name="TemplateHidden" Value="0" />
          <Property Name="TargetControlType" Value=";#SearchResults;#" />
          <Property Name="HtmlDesignLockedFile" Value="TRUE" />
          <Property Name="ManagedPropertyMapping" Value="'Title':'Title','Path':'Path','Description':'Description','EditorOWSUSER':'EditorOWSUSER','LastModifiedTime':'LastModifiedTime','CollapsingStatus':'CollapsingStatus','DocId':'DocId','FileExtension':'FileExtension','ParentLink':'ParentLink','FileType':'FileType','IsContainer':'IsContainer','SEDWMPNewsPublishDate00':'SEDWMPNewsPublishDate00','SEDWMPIntroduction':'SEDWMPIntroduction','SEDWMPNewsIsSticky':'SEDWMPNewsIsSticky','SEDWMPNewsPostThreadId':'SEDWMPNewsPostThreadId'"/>
        </File>

  • Item category determination customizing not maintained error in CRM_IC

    Hello Solution Manager Gurus
          I have configured IC Web Client.. But in service ticket tab i am getting Item category  customizing not maintained error. Similarly i dont know where to create SLA information for service ticket in solman system.
    Please help me
    regards
    Naveen

    Sure Naveen
    I think you have my email id with you
    And for the customization guide of Webclient, it is available on http://help.sap.com/bp_crmv250/CRM_DE/BBLibrary/html/BBlibrary.htm
    C78: CRM Interaction Center (WebClient)
    Hope this will help
    Regards,
    Rekha Dadwal
    <b>You gain a point for every point that you reward. So reward helpful answers generously</b>

  • Exporting images in PDF and broadcasting with custom template error in BI 7

    Hello! We're in the process of creating broadcast reports and are running into some problems. We need someone with experience exporting PDF's or creating broadcasts using custom web templates in 7.0.
    Our issue is two-pronged:
    1) We want users to be able to export (with WAD command) web reports to PDF with the company logo. We have a custom web template with just a JPG image and analysis grid. But for some reason, when this template gets exported to PDF, the image does not get included. We've tried embedding the image into table, group, container, container-layout to no avail. Any suggestions?
    2) We also need the company logo in PDF broadcast reports. We replaced the standard broadcasting web template 0BROADCATING_TEMPLATE (using RSCUST27) with a custom one, but we immediately get the "error loading template ..." when trying to access the Broadcaster. There seem to be no OSS notes for this. 
    Please let me know if you need any additional information.
    Thank you!!

    1) We want users to be able to export (with WAD command) web reports to PDF with the company logo. We have a custom web template with just a JPG image and analysis grid. But for some reason, when this template gets exported to PDF, the image does not get included. We've tried embedding the image into table, group, container, container-layout to no avail. Any suggestions?
    which std template are you replacing with this custom template?
    Broadcasting
    Query Precalculation
    Report Precalculat.
    Enterpr. Report
    Ad Hoc Analysis
    I mean which template does online link default to when it is clicked.

  • Custom display template - how to add anothe display template for refimement item?

    Custom display template - how to add anothe display template for refimement item?
    I add a new filter_default_custom.html file and want to create new refinement item display template to point to it
    keren tsur

    Not 100% if I understood the question, but if you uploaded your template to the Master Gallery and the corresponding .js file has been created, you can open the refinement config panel and specify the result type you want to map to your custom template.
    http://www.eliostruyf.com/part-1-create-first-search-refiner-control-template/
    Kind Regards
    Bjoern
    http://www.sharepointviking.com
    Twitter: Follow @bjoern_rapp

  • Web Item Report Error

    I am running a web report that just has a query in it (testing).  When I run it I get the error:
    Web template error in specifications for the Web item report
    The parameter REPORT for the Report Web item in the Web template is empty or missing
    Add the Report Design (parameter REPORT) with the BEx Web Application Designer
    Contact your system administrator. This error was recorded
    Has anyone experienced this before?
    Thanks,  Mark.

    Hi Karol...
    I know this is a very old thread, but we just recently upgraded a sandbox to 7.0 and just trying out all the functionality. 
    I received the same error as the starter of this thread did but I'm just executing a query (that I created from the Query designer) on to the web (no WAD involved)...   This function could've been calling the 0REPORT_DEFAULT_TEMPLATE where it's getting the error from.  I reactivated the business content but I still couldn't resolve the problem.
    That said, I couldn't really alter the business content using your suggestion for this because it is a template where other queries might be calling it... right? or am I missing something?
    Regards,
    Fionna

  • How to create a Custom form Template..

    Hi Eperts,
    I would like to seek a help from you regarding creating a custom form template on custom BO. could you guide me where i have gone wrong in successfully creating a Print form. I am in dead need of this particular solution for a client. It is hampering my entire scenario......
    1. I had created a Custom BO and I am trying to preview the created form on the OIF screen.
    2. I had created a form on above of the custom BO. This created form and form group is activated and configured as of needed by opening it through ALD (Adobe Life Cycle Designer).
    3. I had created a BAC element with some scoping questions and activated it. After activating it i had deployed the Business configuration.
    4. my solution got updated with the created and deployed BAC elements and i had done scoping for those elements to make my created form available.
    5. I can see my form template in Form Template maitaince under Application user managment WOC. I had made it to be available for all users and published.
    6. All the above steps are done success fully with no errors.
    7. When i accessed my custom BO and tried to preview the created form i am unable to view it and i am seeing the following window.
    Could you help me out in solving this or send me across any detailed document regarding this what you had done previously.
    Thanks in advance for your valuable help...
    Regards...
    Hanu K

    It looks like system didn't identify the form template. So please check if the required configuration for "Preview" modal dialog is done properly. In the SDK documentation, refer to section "8.4.3.4 Create a Preview Button for a Print Form"
    If you have already done the steps mentioned in the section 8.4.3.4, but still facing the issue then let me know.
    Best regards,
    Hari

  • Display filename in url for custom items

    Hi - I'm rying to find out how to open a word doc in a browser and display the FILENAME (xyz.doc) instead of the NAME (123.doc) - which comes from the wwdoc_document$ tbl .
    The word document was added to a portal page via a file attribute within custom text item. It seems that the document is not referenced within the actual page group when using the custom item compared to using standard file item format.
    I can open the doc in browser using the NAME format - eg, .../portal/pls/portal/docs/1/1234.doc but I need to open via the PAGEGRP/FILENAME format eg, .../portal/page/portal/PAGEGRP/xyz.doc
    BTW - We're using portal 10.1.4
    Any ideas appreciated
    Cheers,
    Justin

    Hi guys,
    I finally discover the solution. Just try this:
    First, create a Procedure like this:
    PROCEDURE ShowSaveDoc (pFile wwdoc_document$.name%TYPE) IS
    v_BlobContent wwdoc_document$.blob_content%TYPE;
    v_MimeType wwdoc_document$.mime_type%TYPE;
    v_Filename wwdoc_document$.filename%TYPE;
    BEGIN
    SELECT blob_content, mime_type, filename
    INTO v_BlobContent, v_MimeType, v_Filename
    FROM wwdoc_document$
    WHERE name = pFile;
    owa_util.mime_header(v_MimeType, FALSE);
    htp.p('Content-Length: ' || DBMS_LOB.getlength(v_BlobContent));
    htp.p('Content-Disposition: attachment; filename="' || v_Filename || '"');
    owa_util.http_header_close;
    wpg_docload.download_file( v_BlobContent );
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    htp.p('Error - No Data Was Found');
    WHEN OTHERS THEN
    htp.p('Error - ' || || SQLERRM);
    END;
    On the HTML code where you have the link try this:
    htp.p('< a id="someid" title="download" alt="download"
    h_ref="/portal/pls/portal/portal.galeria_pkg.showsavedoc?pFile=' ||rec.id_doc || '"> Download '||rec.docDescription||'</a>');
    where the rec.id_doc is the wwdoc_document$.name of your document.
    Try it and tell me if it worked.
    Its Working for me.
    Thanks.

  • FRM-40735 WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-065

    Please help....This error is comming when opening the form. The form is running on oracle 11g 64bits web logic.
    "FRM-40735 WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-065"

    Welcome to OTN
    Before posting on this forum please read
    FRM-40735: WHEN-CUSTOM-ITEM-EVENT trigger raised unhandled exception ORA-06502.
    you'll get some hint here
    Oracle/PLSQL: ORA-06502 Error

  • F-32 - clearing customer items in foreign currency

    Hello gurus,
    please, where in SPRO can I set the possibity of clearing customer items in foreign currency in F-32 ?
    Presently all items are converted to local currency and it's not possible to switch into foreign currency.
    Vendor open items we can clear in foreign currency in F-44, but customer open items not.
    Thank you,
    Ondrej

    What error you are getting in F-32 while clearing the customer in foreign currency?
    Please check whether in FS00 for that customer reconciliation account, you have selected the check box "Balance in local currency". If yes, then that will not allow you to clear in foreign currency.
    Regards,
    SDNer

  • Link in my customized Report Template doesn't work – Apex 3.1

    I created a report template based on columns of my report
    My query report is:
    SELECT MEM_NAS ID, MEM_NOM NAME, MEM_DATE_NAIS BIRTH
    FROM ACMT_MEMBRE;
    My customized report template have this Row Template definition:
    <tr onclick="redirect('f?p=&APP_ID.:6:&SESSION.:::6:P6_NAS:#ID#');">
    <td #ALIGNMENT# class="t16data_edit">#NAME#</td>
    <td #ALIGNMENT# class="t16data_edit">#BIRTH#</td>
    </tr>
    This would redirect to the page 6 when user click anywhere on a row but it doesn’t work.
    I have this error message:
    CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');">
    I realized that problem is caused by #ID# because if I hardcode this ID, it works.
    How can my report template get the “ID” from my query report ?
    Apex version: 3.1
    Edited by: mario_romero77 on Jun 8, 2012 10:06 AM

    mario_romero77 wrote:
    I created a report template based on columns of my reportAlways post code wrapped in <tt>\...\</tt> tags to prevent the forum software mangling it.
    My query report is:
    SELECT MEM_NAS ID, MEM_NOM  NAME, MEM_DATE_NAIS  BIRTH
    FROM ACMT_MEMBRE; My customized report template have this Row Template definition:
    &lt;tr onclick="redirect('f?p=&APP_ID.:6:&SESSION.:::6:P6_NAS:#ID#');"&gt;
    <td #ALIGNMENT# class="t16data_edit">#NAME#</td>
    <td #ALIGNMENT# class="t16data_edit">#BIRTH#</td>
    </tr>
    Is the report template definitely of type Named Column (row template) (defined on App Builder page 4000:4654) and not Generic Columns (column template) (defined on page 400:258)?
    Note that the <tt>#ALIGNMENT#</tt> substitution string is not supported in named column templates. Set column alignment explicitly using HTML attributes in the template, or use CSS.
    This would redirect to the page 6 when user click anywhere on a row but it doesn’t work.
    I have this error message:
    CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');"> CHECK$01');">
    {code}Where do you see this? It looks like there's a mismatch between the report columns returned by the query and those referenced in the report template. Or the data contains unsafe HTML characters that aren't being escaped.
    Yes, my report query has a column called ID and it's set as Hidden. This could be the problem. In a report based on a named column template any columns referenced in the template must be +shown+ in the report, even if (as in this case) the column value is not visible to the user: the positioning of the <tt>#ID#</tt> column placeholder in the <tt>onclick</tt> attribute rather than in a table cell is what makes it "hidden". *The Show checkbox for the ID column must be checked.*
    From the gobbledygook being generated it looks like there could be a row selector checkbox column in this report as well? Named column row templates must include substitution placeholders for every shown column. It's also advisable to keep the columns in the same order in the SQL, report column attributes and row template.
    Something like
    {code}
    &lt;tr onclick="redirect('f?p=&APP_ID.:6:&SESSION.:::6:P6_NAS:#ID#');"&gt;
    <td class="t16data_edit">#CHECK$01#</td>
    <td class="t16data_edit">#NAME#</td>
    <td class="t16data_edit">#BIRTH#</td>
    </tr>
    {code}
    I realized that problem is caused by #ID# because if I hardcode this ID, it works.
    How can my report template get the “ID” from my query report ?If the above doesn't help then the easiest way to troubleshoot this would be for you to upload the app to apex.oracle.com and post guest developer credentials for the workspace so we can see the whole thing: template, SQL, and report attributes. Otherwise we're likely to and up with a lot of tedious to and fro here posting bits of code and attribute values.

  • Access query strings in a search results page with custom display template

    am trying to create a  custom display template in my search results page , so i went to download the itemdefault html file and renamed it and  saved as  different file.and  am started to updating.
    the issue i am facing here is : in my  search results page there are 2 query strings, which are passed by anotehr .net appln[ another asp.net appln will be sending the query string to my sp 2013 search results page]
    but, how can i  read these 2  query strings using jslink and  new token _#- ? 
             <!--#_
               var QStringResults= null;
    ctx.OnPostRender = [];
    ctx.OnPostRender.push(function(){ 
    QStringResults= getQuString(); //here am unable to read the QStringResults value 
     _#-->  
    the below is my cstomhtml file
    am unable to  get the values :
                   <a href="http://srvrname:2013/sites/CMP/_layouts/15/BIFAddInputRef/bifpage1.aspx?bif1=_#= $htmlEncode(QStringResults) =#_"> Add Input Reference </a>
    <html xmlns:mso="urn:schemas-microsoft-com:office:office" xmlns:msdt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"> 
    <head>
    <title>Item BIF</title>
    <!--[if gte mso 9]><xml>
    <mso:CustomDocumentProperties>
    <mso:TemplateHidden msdt:dt="string">0</mso:TemplateHidden>
    <mso:MasterPageDescription msdt:dt="string">Displays the default result item template.</mso:MasterPageDescription>
    <mso:ContentTypeId msdt:dt="string">0x0101002039C03B61C64EC4A04F5361F385106603</mso:ContentTypeId>
    <mso:TargetControlType msdt:dt="string">;#SearchResults;#</mso:TargetControlType>
    <mso:HtmlDesignAssociated msdt:dt="string">1</mso:HtmlDesignAssociated>
    <mso:ManagedPropertyMapping msdt:dt="string">'Title':'Title','Path':'Path','Description':'Description','EditorOWSUSER':'EditorOWSUSER','LastModifiedTime':'LastModifiedTime','CollapsingStatus':'CollapsingStatus','DocId':'DocId','HitHighlightedSummary':'HitHighlightedSummary','HitHighlightedProperties':'HitHighlightedProperties','FileExtension':'FileExtension','ViewsLifeTime':'ViewsLifeTime','ParentLink':'ParentLink','FileType':'FileType','IsContainer':'IsContainer','SecondaryFileExtension':'SecondaryFileExtension','DisplayAuthor':'DisplayAuthor','CMPBIFURL2':'CMPBIFURL2'</mso:ManagedPropertyMapping>
    <mso:_dlc_DocId msdt:dt="string">X3CVW7PXYF6P-3-222</mso:_dlc_DocId>
    <mso:_dlc_DocIdItemGuid msdt:dt="string">3ed12157-ea19-4591-b9cd-7a826aef35dc</mso:_dlc_DocIdItemGuid>
    <mso:_dlc_DocIdUrl msdt:dt="string">http://srvrname:2013/sites/CMP/_layouts/15/DocIdRedir.aspx?ID=X3CVW7PXYF6P-3-222, X3CVW7PXYF6P-3-222</mso:_dlc_DocIdUrl>
    </mso:CustomDocumentProperties>
    </xml><![endif]-->
    </head>
    <body>
        <script>
            $includeLanguageScript(this.url,"~sitecollection/_catalogs/masterpage/Display Templates/Search/BIFJScript.js");
        </script>
        <div id="Item_BIF2">
    <!--#_ 
            if(!$isNull(ctx.CurrentItem) && !$isNull(ctx.ClientControl)){
                var id = ctx.ClientControl.get_nextUniqueId();
                var itemId = id + Srch.U.Ids.item;
    var hoverId = id + Srch.U.Ids.hover;
    var hoverUrl = "~sitecollection/_catalogs/masterpage/Display Templates/Search/Item_Default_HoverPanel.js";
                $setResultItem(itemId, ctx.CurrentItem);
    if(ctx.CurrentItem.IsContainer){
    ctx.CurrentItem.csr_Icon = Srch.U.getFolderIconUrl();
    ctx.currentItem_ShowHoverPanelCallback = Srch.U.getShowHoverPanelCallback(itemId, hoverId, hoverUrl);
                ctx.currentItem_HideHoverPanelCallback = Srch.U.getHideHoverPanelCallback();
    _#-->
             <!--#_
               var QStringResults= null;
    ctx.OnPostRender = [];
    ctx.OnPostRender.push(function(){ 
    QStringResults= getQuString();
     _#-->  
            <div id="_#= $htmlEncode(QStringResults) =#_" name="bifItemqstring" 
                    data-displaytemplate="DefaultItem" class="ms-srch-item" 
                    >
                    <h5 style="color:ghostwhite;background-color:black">
                        <a href="_#= ctx.CurrentItem.Path =#_"> _#= ctx.CurrentItem.Path =#_</a>
                    </h5>
                </div>
                <div id="_#= $htmlEncode(itemId) =#_" name="bifItem" 
                    data-displaytemplate="DefaultItem" class="ms-srch-item" 
                    onmouseover="_#= ctx.currentItem_ShowHoverPanelCallback =#_" 
                    onmouseout="_#= ctx.currentItem_HideHoverPanelCallback =#_">
                    <h1 style="color:ghostwhite;background-color:black">
                        <a href="_#= ctx.CurrentItem.Path =#_"> _#= ctx.CurrentItem.Path =#_</a>
                    </h1>
                    <h4 style="color:ghostwhite;background-color:black">
                        <a href="_#= ctx.CurrentItem.Description =#_"> _#= ctx.CurrentItem.Description =#_</a>
                    </h4>
                    <h4 style="color:ghostwhite;background-color:black">
                        <a href="_#= ctx.CurrentItem.LastModifiedTime =#_"> _#= ctx.CurrentItem.LastModifiedTime =#_</a>
                    </h4>
                    <h3 style="color:floralwhite;background-color:green">
                        var mybifurl1= document.getElementById($htmlEncode(QStringResults));
                    <a href="http://srvrname:2013/sites/CMP/_layouts/15/BIFAddInputRef/bifpage1.aspx?bif1=_#= $htmlEncode(QStringResults) =#_"> Add Input Reference </a>
                    </h3>
                  </div>
            <div>
            </div>
                    <div id="_#= $htmlEncode(hoverId) =#_" class="ms-srch-hover-outerContainer"></div>
    <!--#_ 
    _#-->
        </div>
    </body>
    </html>
    when i run the page , i a getting the query string value as   undefined! though the custom javascript is getting called.

    i am able to get the  results  by implementing the below:
    <h4 style="background-color:black">
                        <a onclick="javascript:mycalltojs(_#=
    ctx.CurrentItem.Path=#_) > click here </a>
                    </h4>
    hope this helps  anyone

  • Content Search Web Part - display template Error

    Hi,
    I have an office 365 site, where in I have more than one Content Search Web Part and I have written custom display templates to be used in CSWP.
    Now, the issue is, whenever the page is browsed (intermittent in this case) and the page is edited to edit the CSWP (always in this case), the javascript files corresponding to the display templates are not loaded and because of which its throwing 'Sorry,
    something went wrong' error. 
    Thanks
    Senthil

    Hi Senthu,
    Any updates on this issue?
    Since there are articles describe how to customize template for content search web part, I'd recommend you refer to them and check/debug your script:
    http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/01/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-1.aspx
    http://blogs.technet.com/b/sharepoint_quick_reads/archive/2013/08/02/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-2.aspx
    If you suspect there is performance issue, you could test it on other browsers or machines.
    If the issue persists on reference in the script, please refer to the articles and try to find one which can meet your requirement.
    http://onlinecoder.blogspot.com/2013/10/localizing-cswp-display-templates-in.html
    Regards,
    Rebecca Tu
    TechNet Community Support

Maybe you are looking for

  • Unable to open FCP 5 files in FCP 6.0.1

    Hello, I just upgraded to Final Cut Studio 2 a few weeks ago. I tried to open one of my current projectsin Final Cut Pro 6.0.1. After reading 22 percent of this project the following error message appeared: The project can't be opened (unable to open

  • How to make Multiple I-Tunes & ICloud Accounts on one computer?

    How do you set up multiple itunes accounts on one computer?  Can this be done for ICloud as well?  We have a family computer and not everyone has the same music, calendar etc... AKingsmill

  • My blackberry doesn't want to function anymore..

    Hey Everyone. Thank you in advance for any info & advice! The deal is, I have a secondhand BB 8900 which currently refuses to do anything remotely useful. I'm unable to make/ receive calls, send messages, e-mails or browse the internet etc. Prior to

  • Pages doesn't work after upgrading to Mountain Lion

    I'm not able to launch Pages 09 (neither Numbers nor Keynote) after having installed Mountain Lion. I've tried to reinstall it twice from the original install disc, but still doesn't work. Thanks for the help

  • How to change a field name in the client web interface

    Hello, I need to change name of the field in the Shopping cart Basic data (field Location). Where could I do this? Thank you in advance, Olga