• ndgani
  • NEWBIE
  • 0 Points
  • Member since 2010

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 6
    Replies

Hello all

 

My issue is as follows:

 

I wish to print a visualforce page to a printer defined in the user's local printers.

so far so good. the problem is that i want different pages of the visualforce page (e.g. appendix 1, original, copy)

to be printed from different printer trays (e.g. appendix 1= Tray 1 , original = Tray 2, etc.)

 

obviously other technologies (ActiveX is an option but i would rather avoid it) besides VF and Apex are an option as long as i can integrate them into my VF page.

 

Thanks

 

  • October 07, 2010
  • Like
  • 0

Hi All

 

I have a VF page that is rendered as PDF or Excel.

 

I want to be able to do the following:

when a user wants to save this page i want the filename

to be something i set and not the page name.

 

for Excel I just add the name i want after the MIME Type in contentType, 

but for pdf i dont have that option.

 

please be advised when answering that the <Apex:Page> tab does not have the 'filename' attribute

as in messaging.

 

any ideas?

  • April 11, 2010
  • Like
  • 0

Hello All

 

I need to get the Custom Fields i have in QuoteLineItem and OpportunityLineItem

to sync between a synced Opportunity and Quote.

 

I understand that there is no automated process to do this at the moment and

i want to do it manually (Via trigger).

 

The problem i am facing is knowing which line item in the Opportunity/Quote is the corresponding line item of

a specific line item in the Quote/Opportunity.

 

I'm guessing there is some field that salesforce uses when syncing standard fields but because

there is no schema yet, i dont know.

 

when answering, please consider that PricebookEntryId and ProductCode are not a solution because

the scenarios include one where the same product is entered twice with different Custom fields values.

 

Thanks 

 

 

  • March 23, 2010
  • Like
  • 0

Hello All

 

my issue is this:

 

In a trigger, i need to retreive the synced quote of an opportunity.

In this trigger i have a query retreiving Opportunities.

When i add the field 'SyncedQuoteId' to the query (and nothing more - no changes to the field or anything)

i get the following exception:

 

Error:Apex trigger Opp1_AfterUpdate caused an unexpected exception, contact your administrator: Opp1_AfterUpdate: execution of AfterUpdate caused by: System.Exception: The opportunity SyncedQuote field is read only within a trigger.: Trigger.Opp1_AfterUpdate: line 58, column 10

 

why do i get this exception just for querying the field?

has someone encountered this and solved it?

 

thanks

NDgani

 

  • March 17, 2010
  • Like
  • 0

Hello all

 

my situation is:

 

i have two account record types:

parent

child

 

certain fields exist and are relevant for both record types.

these fields should be synchronized between parent and child.

 

so far so good.

 

the problem starts here:

if one of these fields was updated (manually - not via trigger) in the child,

i should not sync that field from the parent ever again.

 

how can i know if such an event occured (manual change) ?

 

thanks

ndgani 

  • February 15, 2010
  • Like
  • 0

I am trying to accomplish the following, using a custom controller along with a VisualForce Page.

 

I have a series of accounts that act as "Retail Stores", each store can schedule appointments on any given day.   A VisualForce page that does two things currently, it has a drop down list where each store is listed.  You pick the store you want, click Search, and the appointments for that location appear.  The code that grabs those "Locations" is as follows:  (I believe)

 

Customer Controller Code:

 

public List<SelectOption> getLocations() {
        List<SelectOption> locations = new List<SelectOption>();
        for (Account acct : [SELECT Id, Name FROM Account WHERE (Type = 'Retail')]) {
            locations.add(new SelectOption(acct.Id, acct.Name));
        }
        return locations;
    }

 

VisualForce Page Code:

 

<apex:pageBlock title="Criteria">
            <apex:pageBlockButtons >
                <apex:commandButton action="{!refresh}" value=" Search "/>
            </apex:pageBlockButtons>
            <apex:PageBlockSection columns="1" title="1. Location">
                <apex:PageBlockSectionItem >
                    <apex:outputLabel value="Location" for="location"/>
                    <apex:selectList value="{!locationId}" id="location" size="1" multiselect="false">
                        <apex:selectOptions value="{!Locations}" />
                    </apex:selectList>
                </apex:PageBlockSectionItem>
            </apex:PageBlockSection>

 

What I am trying to accomplish is updating the above code where it still pulls the accounts as listed above, but adds an additional element by looking at the current users ID, seeing what "Location" they are associated with and defaulting that location's name in the drop down list.  Currently, it is done alphabetically. 

 

I am not sure if this has been explained well enough, and if not, my apologies.  is there anyone that can offer any insight or assistance with this issue?  Thanks in advance.

 

Hello All

 

I need to get the Custom Fields i have in QuoteLineItem and OpportunityLineItem

to sync between a synced Opportunity and Quote.

 

I understand that there is no automated process to do this at the moment and

i want to do it manually (Via trigger).

 

The problem i am facing is knowing which line item in the Opportunity/Quote is the corresponding line item of

a specific line item in the Quote/Opportunity.

 

I'm guessing there is some field that salesforce uses when syncing standard fields but because

there is no schema yet, i dont know.

 

when answering, please consider that PricebookEntryId and ProductCode are not a solution because

the scenarios include one where the same product is entered twice with different Custom fields values.

 

Thanks 

 

 

  • March 23, 2010
  • Like
  • 0

Hello All

 

my issue is this:

 

In a trigger, i need to retreive the synced quote of an opportunity.

In this trigger i have a query retreiving Opportunities.

When i add the field 'SyncedQuoteId' to the query (and nothing more - no changes to the field or anything)

i get the following exception:

 

Error:Apex trigger Opp1_AfterUpdate caused an unexpected exception, contact your administrator: Opp1_AfterUpdate: execution of AfterUpdate caused by: System.Exception: The opportunity SyncedQuote field is read only within a trigger.: Trigger.Opp1_AfterUpdate: line 58, column 10

 

why do i get this exception just for querying the field?

has someone encountered this and solved it?

 

thanks

NDgani

 

  • March 17, 2010
  • Like
  • 0

Hello all

 

my situation is:

 

i have two account record types:

parent

child

 

certain fields exist and are relevant for both record types.

these fields should be synchronized between parent and child.

 

so far so good.

 

the problem starts here:

if one of these fields was updated (manually - not via trigger) in the child,

i should not sync that field from the parent ever again.

 

how can i know if such an event occured (manual change) ?

 

thanks

ndgani 

  • February 15, 2010
  • Like
  • 0