• Ahmed Adel
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 2
    Replies

I hvae a TotalPrice Standard Field inside QuoteLineItems Standard Object , how this field is updated , where this field is set with values.

 

I've searched Apex Classes , Triggers , workflow updates , but I didn't manage to find any line of code to set TotalPrice with a value.

 

any Suggestation 

 

Hey

 

I have Parent Page Called X which contains input text which has ID='test' and a button which opens Visual Force page called y in new window 

the Y page will display Accounts available in the System , I need when I click on one Account in The Y page it will print the Account Name in the X Page Input text which has the id='test'

 

I did the below:

 

<a href='AcountName' onclick=" window.opener.document.getElementbyId('j_id0:myForm:test').value = this.href ">Account Name Example</a>

 

j_id0:myForm:test is the id of the Input text id='test'.

 

but this is not working , can anyone help me figure out solution for this.

 

Thanks

Hey 

Here is the case

I have 2 radio buttons and one outputpanel

I need when I click on the first radio button "Show the outputpanel"

When I click on the second radio button "hide the outputpanel"

 

I tries to do so but failed , so any one can help me

 

and Here you are what I have :

 

<apex:page showHeader="false" sidebar="false" controller="testAjax3_ctlr">   
  
  <apex:form onsubmit="return checkform(this);" id="myForm">
     <apex:actionfunction id="actfunc" name="actfunc" action="{!enableControl}" reRender="Controlled" />
     <script>
     
     function func(){ 
     alert("Before");
     actfunc();
     alert("after");
      } </script>
     
     <apex:selectRadio value="{!Application.VRF_Visa_Type__c}" required="true" onclick="func();">
         <apex:selectOptions value="{!VRFVisaType}"></apex:selectOptions>
     </apex:selectRadio>
  
     <apex:outputpanel id="Controlled" rendered="{!controllingVar}">
     
       <apex:inputCheckbox id="par" value="{!Application.VRF_Pre_approval_required__c}" />
     </apex:outputPanel>
  
     
     <apex:inputText id="fName" required="true" value="{!Application.First_Name__c}" size="18" onblur="this.value=this.value.toUpperCase()" style="color:#666;" onfocus="clearText(this);calendarControl.hide();" />
  
  </apex:form>
  
  
</apex:page>

 

 

and for the controller :

 

public class testAjax3_ctlr {



Public Boolean controllingVar {get; set;}
    Public Health_Card_Renewal_Form__c Application {get; set;}
    
    Public void enableControl(){ 
    system.debug('ahmed adel inside test method');
      Application.First_Name__c = 'vv';
      controllingVar = false ;
    
    }
    public List<SelectOption> getVRFVisaType()
    {
        List<SelectOption> options = new List<SelectOption>();
        
        options.add(new SelectOption('New Visa', 'New Visa'));
        options.add(new SelectOption('Renewal Visa', 'Renewal Visa'));
        
        return options;
    }
    public testAjax3_ctlr()
    {
        Application = new Health_Card_Renewal_Form__c();
        system.debug('Test log ahmed2');
        Application.First_Name__c = 'First';
        controllingVar = true;
    }




}

 

 

when I click on the first  radio button it calles the alert("before"); Successfully 

but stoped before calling the actfunc().

I need to make the PDF generated from visualforce page to be not editable for security reasons. is it doable?

Hello,

 

I'm looking for a way to open PDF file in new window after saving current change on the page.

 

I created "Order Report" page, which shows lots of custom fields added on Opportunity, like customer PO#, shipping instruction etc.

When the user finish editing the order report, they need to save it in PDF.

so I've created command button "Convert to PDF" and code is:

 

<apex:commandButton value="Convert to PDF"  onClick="window.open('/apex/orderReportPDF?id={!Opportunity.Id}');" />

 The problenm is the PDF shows the data before the user edit order report.

I think I need to put some code in APEX  extension class, but don't know how to code to open the PDF in new window.

 

or is there a way to show pop-up message to tell them to click "SAVE" button before "Convert to PDF"?

 

Thanks for your help.

  • August 19, 2011
  • Like
  • 0

I need to make the PDF generated from visualforce page to be not editable for security reasons. is it doable?