• reshma
  • NEWBIE
  • 0 Points
  • Member since 2008

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 5
    Questions
  • 14
    Replies
Hi,
 
I want to update a particular record with calculated value in flex.
Its like this  where k1 is the text field in which i enter a value which must be added to the present value in salesforce and get
updated.So I am able to get the value from salesforce and text field and add them but unable to update the particular record.
Ao can anyon helip me out.
Thanks in advance
 

apex.query("Select GasType__c,Kgs__c,Va__c,Np__c,Size_mm__c From InventoryReport__c where year__c=2006", new AsyncResponder( function(yr:QueryResult):void {

if (yr.size > 0) {

kgsList1 = yr.records;

}},handleFault));

var i:int;

var kg2:int=new int();

// InventoryReport__c ic=new InventoryReport__c();

for (i = 0; i <kgsList1.length; i++) {

if(kgsList1.getItemAt(i,0).GasType__c=="C2F6"){

kg2=new int(k1.text);

kgsum=kgsList1.getItemAt(i,0).Kgs__c+kg2;

Alert.show("kgsum"+kgsum);

}

 

 

<apex:inputField name='journeydate' value="{!task.activityDate}"/> 
 
How to write getters and setters for this date field to get the value in the controller
I wrote

public void setJourneydate(Date d){

     System.debug(' journeydate : '+d );

    }

          public Date getJourneydate()

    {

     Date dd;

    return dd;

    }

<apex:selectList size='1' name='reserveclass' multiselect="true"> <apex:selectOptions value="{!options}"/> </apex:selectList>

How to write getters and setters for this date field to get the value in the controller
I wrote

public List<SelectOption> getOptions()

    {

    return options;

    }

    public List<SelectOption> getStateoptions()

    {

    return stateoptions;

    }

which is not working.

 

 

Hi I want to set background to visual force page(or form).
<apex:page bgcolor="blue">
 
<apex:form bgcolor="blue">
 
are not working even the attributes background ia not working.
 
Can anyone give me a way how to do it.
 
Thanks in advance
 
 
Hi can anyone give me suggestion as to how to display a calendar input filed in salesforce.
Without referrinfg to any object.
 
I am trying to access Apex Explorer but some proxy errors are coming.
I am in a corporate netwok which needs authentication for accessing internet.
So that we can request them to open port directly.Can we know the ports in which apex explorer is opening.
How to resolve this problem.
Hi,

    I want to change the url of the page. On moving from one page to next page I am passing the parameters, once I took those parameters I want to clear the parameters. How to change the url of the page. I am using the following function.      

System.currentPageReference().getParameters().clear();

But still it is not clearing the parameters.
Any help on this will be highly appreciated.

Thanks in advance.



Is there any apex control for the uploading file? I didn't see any filed type for binary file so how should I handle document uploading?
BTW, I see the attachment in serveral tab but didn't find any way to do program based on the attachment.

Many thanks in advance
Hi,
 
I want to update a particular record with calculated value in flex.
Its like this  where k1 is the text field in which i enter a value which must be added to the present value in salesforce and get
updated.So I am able to get the value from salesforce and text field and add them but unable to update the particular record.
Ao can anyon helip me out.
Thanks in advance
 

apex.query("Select GasType__c,Kgs__c,Va__c,Np__c,Size_mm__c From InventoryReport__c where year__c=2006", new AsyncResponder( function(yr:QueryResult):void {

if (yr.size > 0) {

kgsList1 = yr.records;

}},handleFault));

var i:int;

var kg2:int=new int();

// InventoryReport__c ic=new InventoryReport__c();

for (i = 0; i <kgsList1.length; i++) {

if(kgsList1.getItemAt(i,0).GasType__c=="C2F6"){

kg2=new int(k1.text);

kgsum=kgsList1.getItemAt(i,0).Kgs__c+kg2;

Alert.show("kgsum"+kgsum);

}

 

 

i created a new custom object.. i need to move the data in some fields of an existing custom object to this new custom object.. how do i do that programmatically??
Hi All,

I created an external web service it return an XML string format. Now I want to parse this XML string to bind data into selectList of Visual Force. My XML string:
<NewDataSet>
    <Properties diffgr:id="Properties1" msdata:rowOrder="0">
      <ProjectID>6949</ProjectID>
      <Description>All Metrics Example # 1</Description>
    </Properties>
    <Properties diffgr:id="Properties2" msdata:rowOrder="1">
      <ProjectID>6951</ProjectID>
      <Description>Test session</Description>
    </Properties>
</NewDataSet>

and my selectList has Text = Description and Value = ProjectID.

Any ideas?

Thanks so much.
<apex:inputField name='journeydate' value="{!task.activityDate}"/> 
 
How to write getters and setters for this date field to get the value in the controller
I wrote

public void setJourneydate(Date d){

     System.debug(' journeydate : '+d );

    }

          public Date getJourneydate()

    {

     Date dd;

    return dd;

    }

<apex:selectList size='1' name='reserveclass' multiselect="true"> <apex:selectOptions value="{!options}"/> </apex:selectList>

How to write getters and setters for this date field to get the value in the controller
I wrote

public List<SelectOption> getOptions()

    {

    return options;

    }

    public List<SelectOption> getStateoptions()

    {

    return stateoptions;

    }

which is not working.

 

 

I have following issue:
when I create a new Account I first would like to fetch the Account data from an external web service
and populate the Account with the result of my web service call. My idea is to add a button (GetAccountData) that would trigger the
web service (with a Controller ?), get the response and display the data on the Account Tab.
is there a way  in Visualforce to add such a functionality ?

Hi I want to set background to visual force page(or form).
<apex:page bgcolor="blue">
 
<apex:form bgcolor="blue">
 
are not working even the attributes background ia not working.
 
Can anyone give me a way how to do it.
 
Thanks in advance
 
 
Hi can anyone give me suggestion as to how to display a calendar input filed in salesforce.
Without referrinfg to any object.
 
Hi,

I am attempting to query data from the Accounts table as well as several child fields from the Events table. I can successfully query from each  individually but am not having success in combining them into one dataprovider which populates a datagrid.
I haven't seen an example of this, so if someone could point me in the right direction, I would great appreciate it. FYI, both tmp and eventNameDateTime are bindable arrayCollections.

Thanks,

Errol

private function displayEditMeetingSearchResults():void {
                             
                apex.query("Select Id, AccountNumber, Name, (Select Event.AccountId, Event.ActivityDate, Event.Id, Event.Type From Account.Events) from Account", new AsyncResponder
                (
                    function(qr:QueryResult):void
                    {
                        if (qr.size > 0)
                        {
                            tmp = qr.records;
                            //eventNameDateTime = qr.records;
                            eventNameDateTime = tmp.getItemAt(0).Events.records;
           
                        }
                    },
                    handleFault)
                );
            }
  • May 23, 2008
  • Like
  • 0