• Rashmi27
  • NEWBIE
  • 25 Points
  • Member since 2012

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

How to get object instance from URL like https://cs17.salesforce.com/01pg00000004s2u  without using  following way

 

Apexpages.currentPage().getHeaders().get('referer').right(15);

 

Because I am unable to execute  the unit test cases.

 

Is there any other way help appreciated !.........

 

 

Cheers!..

 

 

Xml's  in  CloudTunes -> res -> layout-> 

 

                    -> sf__custom_server_url.xml

                    -> sf__login.xml

                    -> sf__passcode.xml

                    -> sf__server_picker.xml

 

are errored out... these xmls have  ".../../../../SalesforceSDK/res/layout/sf__server_picker.xml"      ,

 

Please anyone help me how to fix, i am unable to run a simple sample app.

Xml's  in  CloudTunes -> res -> layout-> 

 

                    -> sf__custom_server_url.xml

                    -> sf__login.xml

                    -> sf__passcode.xml

                    -> sf__server_picker.xml

 

are errored out... these xmls have  ".../../../../SalesforceSDK/res/layout/sf__server_picker.xml"      ,

 

Please anyone help me how to fix, i am unable to run a simple sample app.

Hi All,

 

 On selectRadio Button selected value want to be access in apex class controller.

 

Apex Code:

<apex:page controller="SelectRadioController">
<apex:form >
<apex:pageBlock >
<apex:selectRadio id="slctRd" dir="ltr" required="true" layout="pageDirection" value="{!selectedValue}" immediate="true">
<apex:selectOptions id="selRdOptn" value="{!Options}"/>
</apex:selectRadio>
<apex:outputText id="test" value="{!test}"></apex:outputText>
</apex:pageBlock>
</apex:form>
</apex:page>

 

controller Class:

public with sharing class SelectRadioController {
    
    public String selectedValue {get; set;}
    public List<SelectOption> Options {get; set;}
    
    public SelectRadioController() {
        Options = new List<SelectOption>();
        Options.add(new SelectOption('test1', 'test1'));
        Options.add(new SelectOption('test2', 'test2'));
        Options.add(new SelectOption('test3', 'test3'));
    }
    
   public String test{
     set{}
     get{
     test = 'Hello World' + selectedValue  ;
      return test;
     }
    }   
}

 

Here i want to display test filed on visualforce page, but this code is not working.

Can any one help me on this.

 

Thanks in Advance.

 

Ragards,

Sandesh