• jordanm
  • NEWBIE
  • 30 Points
  • Member since 2011

  • Chatter
    Feed
  • 1
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 17
    Questions
  • 49
    Replies

Hello,

 

How would one convert the data in an object in the following way:

 

From this:

 

Object A: 1 record

ContactId,Phone,MobilePhone,HomePhone

a000axb03423xbg,222-222-2222,111-111-1111,000-000-0000

 

To this:

 

Object B: 3 records

ContactId,PhoneToCall

a000axb03423xbg,222-222-2222

a000axb03423xbg,111-111-1111

a000axb03423xbg,000-000-0000

 

This is a data conversion that I'd have to be able to schedule out of SF on a nightly basis.

 

This could be accomplished in SQL pretty easily or if I could replicate my force data down into a SQL database, but I'm not finding a way to do it in SOQL. Any suggestions?

 

Hello, Presently, in cloud flows, the only object that can display dynamic choices while truly being "required" and making the user make a conscious input decision is the radio button list. Drowndown lists can be "required" but they default to the first dynamic choice, so they don't start out empty and require a user to actually select a value. Is there any way to achieve the same functionality with dropdown lists? I don't particularly like radiobutton lists with 20+ choices taking up a sizable portion of the flow container.

The '12 summer release notes state that you can now alter the layout, look, and feel of flows with visualforce page/css etc.

Is there any documentation on how to accomplish this?

Hi,

 

Anybody else having problems with images in summer '12?

Our sandbox has been updated and pdf generation now gives an error 'PDF generation failed. Check the page markup is valid.'

 

Test example below gives same issue. Any ideas?

 

<apex:page renderas="pdf">
  <h1>Congratulations</h1>
  This is your new Page
  <img src="http://www.developerforce.com/assets/images/discussions/banner.gif"></img>
</apex:page>

 A case has been logged -but just wondering if there is a quick fix.

 

Thanks!

Rich.

 

 

 

It won't even work for the canned quote2PDF example in the cookbook...

 

I get this error message on an otherwise blank failure page: "PDF generation failed. Check the page markup is valid. "

 

Anyone else seeing this?

Hi,


I need a hand building this loop for the following scenario. I have a grandparent that is passed to a page via query string, this grandparent refers to multiple parents, and those multiple parents each have multiple children

 

I want to yield this:

grandparent 1

+++parent 1

++++++child a

++++++child b

+++parent 2

++++++child c

++++++child d

 

The loop in the controller is confounding me.

parents = [SELECT id,Name  
                FROM Parent__c
                WHERE Grandparent__c=:grandparentId];        
        
        for(Parent__c parents1:parents)
            {
                // fetch the values by SOQL on the basis of parent id
                children=[select id,Name 
                            FROM Child__c
                            WHERE Parent__c=:parents1.id]; 
                            system.debug('size'+ parents.size());
                            system.debug('>>>>>>>>>>>>>>>>>');  
                children1.addall(children);
            }

 This is clearly incorrect. It is going to build a list of ALL the parents of the grandparent and then take ALL of their children and store them in children1 variable. This won't accomplish the tree-type view I want, it will instead show this:

grandparent 1

+++parent 1

++++++child a

++++++child b

++++++child c

++++++child d

+++parent 2

++++++child a

++++++child b

++++++child c

++++++child d

 

How should I build this loop?

 

In the last screen of my flow, I display the various input fields submitted by the user as a confirmation of what s/he enterred. This screen is preceeded by a Record Create task which posted the data to my custom object. All is well except for the fact that my last screen displays the default buttons of "Previous" and "Finish". How do I remove or hide the Previous button so a user does not make an inadvertent double entry by clicking the Previous button and invoking the Record Create a second time?

Hello,

In my flow I have a form_SSN textbox and a form_SSN_Status radiolist

 

here is my validation routine for the form_SSN textbox:

 

NOT(
OR(
  NOT(
  OR (
  ISBLANK({!form_SSN}), 
  REGEX( {!form_SSN} , "[0-9]{9}"))),
AND (
  OR (
  {!form_SSN_Status} = "Verified",
  {!form_SSN_Status} = "Unverified"),
  ISBLANK({!form_SSN})),
AND (
  OR (
  {!form_SSN_Status} = "Refused",
  {!form_SSN_Status} = "Pending",
  {!form_SSN_Status} = "Unavailable"),
  NOT ISBLANK({!form_SSN})
)
)
)

 

When I select status "verified" or "unverified" I should be getting an error message if I attempt to not enter anything into SSN textbox, however, this is not the case.

The inverse is true, when I select the other statuses and have any value in the textbox the NOT ISBLANK({!field}) function DOES fire an error. This leads me to believe that this is a bug.

 

NOTE: I have this very same validation routine working as a validation rule on the object level... the only difference is I enclosed everything here with a NOT ( ) because validation rules shoot errors on "true" whereas flow validation errors out on "false".

 

 

 

 

missing buttons

This is a snapshot of the first page of the new visual workflow I have recently deployed to production. As you can see, it has no buttons. No "Next", no "Finish", no nothin'.

 

If I hit refresh, however, there is a 75% chance the buttons will appear. (All percent chances in this post are estimates.) There is a 50% chance the buttons will appear or not appear on ALL pages in my visual workflow. I cannot find any consistant reason for this. I have tried different users, different profiles, different browsers. It is relatively unpredictable on the same computer, with only seconds between attempts, and have been able to reproduce it on multiple computers. It truly seems to be random! Does anyone know what is going on here? I'd hate to have to tell my 280+ users that if they get no buttons they just have to keep hitting Refresh until they come up!

 

I can provide any requested information on my visual workflow if needed.

Hello,

 

Has anyone tried calling the $flow.CurrentDate system variable in flows? This actually seems like a bug. Regardless of what time you invoke the function, it ALWAYS returns 7:00 PM of the PREVIOUS day.

 

Is there a setting or way to fix this?

Hi,

 

The Problem I’m having is that the actionSupport function SearchTemplates from my dependent picklist is only running once when I set the value. When I change the values again it does not run my SearchTemplates method. What is happening is that Salesforce is removing the onchange event from my select list after running the action once. I think this maybe a Salesforce bug. Is there a workaround with out changing my data model?

 

Below is a simple code example of what I am trying to do:

 

Visualforce Page

 

<apex:page controller="TemplateCont" >
<apex:form >
<apex:actionRegion >
<apex:inputField value="{!aTemplate.Category__c}"/>
<apex:inputField value="{!aTemplate.Subcategory__c}">
<apex:actionSupport action="{!SearchTemplates}" event="onchange" rerender="matchingTemplates" status="status"/>
</apex:inputField>
<apex:actionStatus startText=" Please wait..." id="status"/>
</apex:actionRegion>

<apex:pageBlock title="Matching Templates" id="matchingTemplates" >

{!MatchingTemplates.size}

</apex:pageBlock>

</apex:form>
</apex:page>

Controller

 

 

public with sharing class TemplateCont {
public Template__c aTemplate{get; set;}
public List<Template__c> matchingTemplates{get; private set;}
public TemplateCont(){ aTemplate = new Template__c(); matchingTemplates = new List<Template__c>(); } public void SearchTemplates(){ matchingTemplates = [SELECT name, category__c, subcategory__c FROM Template__c where category__c=:aTemplate.Category__c and subCategory__c=:aTemplate.Subcategory__c]; } }

 

 

Would be greatfull for any help.

 

Thanks

 

Peter