You need to sign in to do that
Don't have an account?
Abhishek Prasad 8
Conga Issue- id Parameter is missing
We have got one button, which, with the help of conga composer, opens an attachment. I am leveraging the functionality of that button to create another button. Here is my VF code:
It is successfully invoking the COnga Composer, and its opening the window, but it throws the error:
The id parameter is missing
can anyone help me? what should i pass as the Id? i have tried object__c.Id, but it not identifying it.
<apex:commandButton value="Generate Doc" action="{!CallProc}" onClick="openConga();return false;" rendered="{!if(valErr == true, false, true)}"/>and here is my JS script:
<Script Language="JavaScript"> function openConga() { window.open('{!URLFOR($Action.Contract1__c.Conga_Composer_Main_Doc, Id)}', '','scrollbars=yes,menubar=no,height=600,width=800,resizable=yes, toolbar=no,location=yes,status=yes'); } </Script>
It is successfully invoking the COnga Composer, and its opening the window, but it throws the error:
The id parameter is missing
can anyone help me? what should i pass as the Id? i have tried object__c.Id, but it not identifying it.
In the JS, i have accessed the record id from the Controller (ContractId) and used it in place of the id It was giving error that Id parameter is missing. Actually record creation and accessing the record id was happening in the same method, so VF was not able to catch the records id.
I added reRender which allowed it to refresh, and hence, it caught the record id:
This is also the way to call two actions from one button.