• Vivek Manchanda
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 14
    Questions
  • 11
    Replies
   Hi All

I have created a Flex based Application which contain some Salesforce Information .

Now I need to display that Flex Application in VF Page .

I can create an S-Controls form Flex File but I don't know How to Call the Flex File(.swf File) in VF Page .

One way which I know is by making Static Resources of that .swf File and then and then call that file in VF page . but in this case I was not able to login in Salesforce through my Flex Application (.swf File).
 
Any one can advice me how to do that .

Thanks
Vivek Manchanda
Hi All

I have made a page in which I have around 2 section , first section  contains the Account Information ,Second Section contain the Contact information , I am calling this information trough Custom Controller . I have also made EDIT button on both the session so when ever I click on Edit button I get the section in edit mode ,and I am also able to save this new Information through edit mode .

by writing the "<apex:commandButton  value="Save"  />"

By only writing this code I am able to save the changes which I have made in edit mode .

Now the problem is that I am not able to do any type of VALIDATION in the text input ..For validation i am using
"<apex:inputText  id="firstName" styleClass="std"  value="{!firstName}"/>
                        <apex:outputPanel id="fnError" layout="block" style="color:red" rendered='{!IF(LEN(firstName)>0,false,true)}'>Please enter First Name</apex:outputPanel>"

Can any one Help me that how I can do that .

Thanks
Vivek Manchanda
I have made a page where I have 4 check boxs which contain  some  product  name  .  I also  have a button when ever any one select any product from all the check box and click on next  button the name of that product used to tranfer on another page .
This is the way I am getting the value in the Check box.
<apex:dataTable value="{!firstpage}" var="classesCert" id="classCert">
<apex:column>
<apex:facet name="header">Product </apex:facet>
<apex:inputCheckbox value="{!classesCert.isSelected}" selected="{!classesCert.isSelected}" id="isSelected"/>
<strong><apex:outputText value="{!classesCert.Product.Name}"/></strong>
<apex:outputText value="{!classesCert.Product.description}"/>
</apex:column>
</apex:dataTable>

On the next page I am only getting the value of the check box which I have selected .
I am getting this value through
<apex:dataTable value="{!firstpage }" var="classesCert" id="classCert" >
                               <apex:column rendered='{!IF(classesCert.IsSelected,true,false)}'>
                                       <strong><apex:outputText value="{!classesCert.Product.Name}"/></strong>
                              </apex:column>
                </apex:dataTable>
Now the problem is I have made a edit button on another page when ever I click on that edit button i get a Visual Force Error

"Incorrect parameter for function IF(). Expected Boolean, received Object "

I am getting this Error due to " <apex:column rendered='{!IF(classesCert.IsSelected,true,false)}'> " this if condition but I don't know why . Can any one tell me some other way to get the selected check box value from one page to another page .
OR
How to solve this Problem/Error.

Thanks
Vivek Manchanda
I have been running into this issue a lot lately. I will create a page in the web editor and define a controller in the <apex: page> tag. It will prompt me to create a class and I do. When I then start to edit my page and save I get the following error. Sometimes this is after the first time I try to save or it may be after a few saves.



But this controller already exists and I can confirm this by looking in Setup > Develop > Classes. If I then clikc the Create Apex class 'thisController' I get this error:



This whole issue is a little difficult to replicate as it seems a little random but it is definetly there. It does not happen on my older pages/controllers, just new ones I am trying to create. It happens in both IE6 and FF. This is starting to drive me crazy so any help is greatly appreciated. Thanks.


EDIT: I have also opened a case to log this issue, 01718079. Attached to the case is a video of the error.


Message Edited by TehNrd on 02-28-2008 09:05 PM

Hi All

I have created a VF page to add a contact without using the standard Contacts tab.

See the code below. I am able to save the contact info with no issues. But what I want is

when I select an Account in this page which is a look up I have to get the Revenue value

for the selected Account before I save the page. Is this possible in Visual Force Page?

If possible how this can be achieved?

 

<apex:page standardController="Contact">

<script language="JavaScript">

function showAccRevenue()

{  alert ("How to get a/c revenue");}

</script>

<apex:pageBlock>Create New Contact Quickly</apex:pageBlock>

<apex:Form>

<table>

<tr><td>First name:</td>

<td><apex:inputField value="{!Contact.FirstName}"/></td></tr>

<tr><td>Last name: </td>

<td><apex:inputField value="{!Contact.LastName}"/> </td></tr>

<tr><td>Phone: </td>

<td> <apex:inputField value="{!Contact.Phone}"/> </td></tr>

<tr><td>Account</td>

<td><apex:inputField id="txtAcc" onblur="showAccRevenue();" value="{!Contact.AccountId}"/></td></tr>

</table>

<apex:commandButton action="{!save}" value="Save"/>

</apex:Form></apex:page>

 

How to get all the filtering way of Account in our Application through API the term through ' filtering ' I mean the drop down which comes on the top when we click on Account tab , the ' VIEW Drop Down ' . I need to get all that filtering ways in my Application ,the ways like My Account, All Account ,New Last Week ,New This week Etc . I need to call this ways in my Application through which I can Show any Account details in my Application according to the Filter .
I'm delighted to see that the latest release of the Flex toolkit AsyncResponder has a context parameter - I've been waiting for that!

Unfortunately, I'm getting an error when I try to use this release of the toolkit:

"An internal build error has occurred.  Please check the error log."
"unable to load SWC as3salesforce.swc"

I've checked the Eclipse library path, and re-downloaded the toolkit, but no luck.

Does this release need to be rebuilt?  Anyone else having problems with it?

Thanks,

Ron
Hello,

I am currently using a home brewed S-control.  This S-control is a flex chart that I have created.  I used the tutorial on here to learn how to call the attached .swf file in the s-control. 

However, when calling it in visualforce, it does not work. 
Can anyone give me an example of how they would do this?

Thank you.
Hi
 
I have a requirement to get UserName from sforce Through API.
I am unable to find the option to get UserName.
 
I can able to get userEmail,UserID,UserFullName using getUserInfo() function which will return GetUserInfoResult object
 
GetUSerInfoREsult object is not having USerName.
 
Please help me how can i get username ( i don't want to pass the username as a querystring parameter)
 
 
Thanks,
Mohan