• Mrithula
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 1
    Likes Received
  • 0
    Likes Given
  • 13
    Questions
  • 11
    Replies
hi,

i have a static page(say demo) with <apex:outputLink value="{!URLFOR('pagexyz')}"> that navigates to page xyz.

from xyz while iam clicking back button in browser it ask for  "confirm form re-submission" .

i need to come back to demo page onclicking back button .

iam also tried cache="false", still problem exists.

how to avoid this issue..?

hi ,

 

I read it is not possible to rerender RTA in VF..??

 

can anybody tell me, if there is anyway to rerender Rich Text Area in VF page..

 

 

hi all,

 

 

iam creating Online Examination App in which, the questions or option must contains an image 

 

is there  any posibility to do that ?? 

 

hi,

 

i have a list that contains comma separated values (for eg, answerlist ) .

 

now i want to remove the commas and to store the values un a list..which i want to add to the wrapper...

 

 

 anyone help me to do this...

hi all,

 

 

 

how to set the background color as white in pageblock

hi, 

 

i have a requirement that , the field X  data type is "text" that holds values.

 

but in my Visual Force page the values in X  that has text datatype  should be displayed in "radio button" or  " check box". based on the picklist value.

 

pls help me to achieve this..

 

Thanks in advance.

hi ,

iam new to salesforce and iam facing with the following issue... can anyone help me ...

i have 3 objects..

1.patient_details -> here i collect patient name and doctor name(lookup) they want to meet.

 

2.patient _traking -> i want to create track sheet  that has details like patient name(lookup), bed no , ward no, doctor name  after entering this details i want to save this record.

 

iam facing the pblm when creatin the scenario...

 

when i choose the patient name in lookup , the doctor they consulted should be displayed automatically...i don't know how to bring this...

my code is here...

 

PAGE:

 

<apex:page controller="track" >
<apex:form >
<apex:pageBlock >

<apex:pageBlockSection title="Patient Tracking System" columns="2">

<apex:inputField value="{!pt.Name__c}"/>
<apex:outputPanel id="out">
<apex:outputtext value="{!pt.staff_details__c}"/>
</apex:outputPanel>
<apex:inputField value="{!pt.Type_of_treatment__c}"/>
<apex:inputField value="{!pt.Status__c}"/>
<apex:inputField value="{!pt.Priority__c}"/>
<apex:inputField value="{!pt.Bed_No__c}"/>

</apex:pageBlockSection>

<apex:pageBlockSection title="Search">
<apex:outputLink value="{!URLFOR('https://c.ap1.visual.force.com/apex/tracksearch')}">
Track the patient
</apex:outputLink>

</apex:pageBlockSection>

 

<apex:pageBlockButtons location="bottom">
<apex:commandButton value="SAVE" action="{!savenew}"/>
<apex:commandButton value="CANCEL" action="{!cancelnew}"/>
<apex:commandButton value="CLEAR" action="{!clr}"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>

 

 

CONTROLLER:

 

public class track
{
public Patient_tracking__c pt{set;get;}

public track()
{
pt= new Patient_tracking__c ();
Id ptId= ApexPages.currentPage().getParameters().get('ptId');

pt=(ptId==null)? new Patient_tracking__c ():

[select Name__c,Bed_No__c,Priority__c,staff_details__c,Status__c,Type_of_treatment__c from Patient_tracking__c where id=:ptId];

}
public pageReference savenew()
{
try
{
upsert pt;


ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, 'Your data was saved successfully'));
}

catch(Exception e)
{
ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, e.getMessage()));
}


pageReference pg= new pageReference('/apex/trackview');
pg.getParameters().put('ptId',pt.id);
pg.setRedirect(true);
return pg;
}

public pageReference Edit()
{
pageReference pg= new pageReference('/apex/trackpatient');
pg.getParameters().put('ptId',pt.id);
pg.setRedirect(true);
return pg;
}

 

public pageReference clr()
{
pt= new Patient_tracking__c ();
return null;
}


public pageReference cancelnew()
{
pageReference pg = new pageReference ('https://ap1.salesforce.com/home/home.jsp');
pg.setRedirect(true);
return pg;
}


}

 

 

 

hi, 

 

i have obj named patient_receipt__c, it has lookup field for patient name, if i select the name and click search it should display the details ..but it is not working and i  don't knw where i did mistake..

 

my controller:

 

public class viewrec
{
public String temp;
Public Boolean show{set;get;}
public Patient_Receipt__c pr{get; set;}
Public  list<Patient_Receipt__c>prlst{set;  get;}

    public viewrec()
    {
    
    pr= new Patient_Receipt__c();
    show= false;
    }


    public pageReference fees()
    {
    if(pr.Name__c!= null)
    
    {
    
    temp=pr.Name__c;


   //prlst= (list<Patient_Receipt__c>)[select Name__c,Registration_Number__c,Age__c,Diagnosis_Fees__c,E_C_G_Fees__c,Indoor_Injection_Fees__c,Lab_Fees__c,X_Ray_Fees__c,Total_Fee__c from Patient_Receipt__c WHERE Name like: temp];
   
   pr= [select Name__c,Registration_Number__c,Age__c,Diagnosis_Fees__c,E_C_G_Fees__c,Indoor_Injection_Fees__c,Lab_Fees__c,X_Ray_Fees__c,Total_Fee__c from Patient_Receipt__c WHERE Name =: temp];
  
   
    show= true;
    }
     System.Debug('pr');
    return null;  
    

    }
    
    
    public pageReference clr()
    {
    show=false;
    return null;
    
    }
    

}

 

my page:

 

 

<apex:page controller="viewrec" >

<apex:form >

<apex:pageBlock >
<apex:pageBlockSection >
<apex:inputField value="{!pr.Name__c}" label="Patient name"/>
</apex:pageBlockSection>

<apex:pageBlockButtons location="bottom">
<apex:commandButton value="view fee details" action="{!fees}"/>
<apex:commandButton value="Clear" action="{!clr}"/>
</apex:pageBlockButtons>

<apex:pageBlockTable rendered="{!show}" value="{!pr}" var="d">
<apex:column value="{!d.Name__c}" />
<apex:column value="{!d.Registration_Number__c}" />
<apex:column value="{!d.Age__c}" />
<apex:column value="{!d.Diagnosis_Fees__c}" />
<apex:column value="{!d.E_C_G_Fees__c}" />
<apex:column value="{!d.Indoor_Injection_Fees__c}" />
<apex:column value="{!d.Lab_Fees__c}" />
<apex:column value="{!d.X_Ray_Fees__c}" />
<apex:column value="{!d.Total_Fee__c }" />
</apex:pageblockTable>

</apex:pageBlock>

</apex:form>

</apex:page>

 

hi ,

 

my code is here...

 

i dont knw wat mistake i done...can anyone help me

 

CONTROLLER

 

public class srchstaff {
String src;
String temp;
List<staff_details__c> stafflst;
public staff_details__c staff{set;get;}

public srchstaff()
{
staff=new staff_details__c();

}
public String getstaff() {
return temp;
}

public void setstaff(String s) {
src=s;
temp='%' + src + '%';
}

public List<staff_details__c> getstafflst() {
return stafflst;
}

public PageReference doSearch() {
if (temp != null)
{
stafflst = (List<staff_details__c>)[select Name,Mobile__c,EMail__c,Position__c from staff_details__c like :temp];
}

return null;

}}

 

 


PAGE:

 


<apex:page Controller="srchstaff">
<apex:form >
<apex:pageBlock >

<apex:pageblockSection title="Search Doctor Details Here" >

<apex:inputText value="{!src}" label="Doctor Name"/>

</apex:pageblockSection>

<apex:pageBlockButtons location="bottom">

<apex:commandButton value="SEARCH" action="{!doSearch}"/>

</apex:pageBlockButtons>

 

<apex:pageBlockTable value="{!stafflst}" var="m">
<apex:column value="{!m.Name}"/>
<apex:column value="{!m.Mobile__c}"/>
<apex:column value="{!m.EMail__c}"/>
<apex:column value="{!m.Position__c}"/>

</apex:pageblocktable>

 

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

hi,

 

i don't have idea to delete the values in the fields in the following scenario....

 

1) i have 3 text boxes(inputtextfields) that accepts values from the user

 

2) the values will be submitted if SAVE button is clicked

 

The values are saved but the textboxes are not cleared automatically.

 

iam using clear button to clear the values.

 

but i need  to clear my textboxes AUTOMATICALLY  when i click the save button.

 

 

 

hi,

 

iam a  newbie..can anyone explain me " what is List  with an example? " and "Where should i use this ?"

 

Thanks in advance..

hi,

 

iam new to salesforce and i need help to add some values , which should be retrived from 3 textfields and it should be displayed in another text field.

 

for E.g.,

 

i have 3 text field

 

1. X-ray fees

2. E.C.G fees

3.Indoor Injection fees

 

I) i have to retive the values from these textboxes 

II) add these values 

III) display the added values in another txt box (Say) Total Fees

 

and i don't have idea how to implement this one using formulas..

Hi,

 

iam new to salesforce and have been learning for past 1 month. i wonder how to create dependency field for textbox.

 

 

for example:  i have a picklist with 2 values 

                          1.Nurse

                          2.Doctor

 

If i choose doctor 

 

following textfields should be active.

 

1.operation details

2.patient to operate on

3.type of operation etc,..

 

can anyone explain me clearly, to understand it easily

 

Hi,

 

iam new to salesforce and have been learning for past 1 month. i wonder how to create dependency field for textbox.

 

 

for example:  i have a picklist with 2 values 

                          1.Nurse

                          2.Doctor

 

If i choose doctor 

 

following textfields should be active.

 

1.operation details

2.patient to operate on

3.type of operation etc,..

 

can anyone explain me clearly, to understand it easily

 

hi ,

 

I read it is not possible to rerender RTA in VF..??

 

can anybody tell me, if there is anyway to rerender Rich Text Area in VF page..

 

 

hi,

 

i have a list that contains comma separated values (for eg, answerlist ) .

 

now i want to remove the commas and to store the values un a list..which i want to add to the wrapper...

 

 

 anyone help me to do this...

hi, 

 

i have a requirement that , the field X  data type is "text" that holds values.

 

but in my Visual Force page the values in X  that has text datatype  should be displayed in "radio button" or  " check box". based on the picklist value.

 

pls help me to achieve this..

 

Thanks in advance.

hi ,

iam new to salesforce and iam facing with the following issue... can anyone help me ...

i have 3 objects..

1.patient_details -> here i collect patient name and doctor name(lookup) they want to meet.

 

2.patient _traking -> i want to create track sheet  that has details like patient name(lookup), bed no , ward no, doctor name  after entering this details i want to save this record.

 

iam facing the pblm when creatin the scenario...

 

when i choose the patient name in lookup , the doctor they consulted should be displayed automatically...i don't know how to bring this...

my code is here...

 

PAGE:

 

<apex:page controller="track" >
<apex:form >
<apex:pageBlock >

<apex:pageBlockSection title="Patient Tracking System" columns="2">

<apex:inputField value="{!pt.Name__c}"/>
<apex:outputPanel id="out">
<apex:outputtext value="{!pt.staff_details__c}"/>
</apex:outputPanel>
<apex:inputField value="{!pt.Type_of_treatment__c}"/>
<apex:inputField value="{!pt.Status__c}"/>
<apex:inputField value="{!pt.Priority__c}"/>
<apex:inputField value="{!pt.Bed_No__c}"/>

</apex:pageBlockSection>

<apex:pageBlockSection title="Search">
<apex:outputLink value="{!URLFOR('https://c.ap1.visual.force.com/apex/tracksearch')}">
Track the patient
</apex:outputLink>

</apex:pageBlockSection>

 

<apex:pageBlockButtons location="bottom">
<apex:commandButton value="SAVE" action="{!savenew}"/>
<apex:commandButton value="CANCEL" action="{!cancelnew}"/>
<apex:commandButton value="CLEAR" action="{!clr}"/>
</apex:pageBlockButtons>
</apex:pageBlock>
</apex:form>
</apex:page>

 

 

CONTROLLER:

 

public class track
{
public Patient_tracking__c pt{set;get;}

public track()
{
pt= new Patient_tracking__c ();
Id ptId= ApexPages.currentPage().getParameters().get('ptId');

pt=(ptId==null)? new Patient_tracking__c ():

[select Name__c,Bed_No__c,Priority__c,staff_details__c,Status__c,Type_of_treatment__c from Patient_tracking__c where id=:ptId];

}
public pageReference savenew()
{
try
{
upsert pt;


ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, 'Your data was saved successfully'));
}

catch(Exception e)
{
ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, e.getMessage()));
}


pageReference pg= new pageReference('/apex/trackview');
pg.getParameters().put('ptId',pt.id);
pg.setRedirect(true);
return pg;
}

public pageReference Edit()
{
pageReference pg= new pageReference('/apex/trackpatient');
pg.getParameters().put('ptId',pt.id);
pg.setRedirect(true);
return pg;
}

 

public pageReference clr()
{
pt= new Patient_tracking__c ();
return null;
}


public pageReference cancelnew()
{
pageReference pg = new pageReference ('https://ap1.salesforce.com/home/home.jsp');
pg.setRedirect(true);
return pg;
}


}

 

 

 

hi,

 

i don't have idea to delete the values in the fields in the following scenario....

 

1) i have 3 text boxes(inputtextfields) that accepts values from the user

 

2) the values will be submitted if SAVE button is clicked

 

The values are saved but the textboxes are not cleared automatically.

 

iam using clear button to clear the values.

 

but i need  to clear my textboxes AUTOMATICALLY  when i click the save button.

 

 

 

hi,

 

iam a  newbie..can anyone explain me " what is List  with an example? " and "Where should i use this ?"

 

Thanks in advance..

Hi,

 

iam new to salesforce and have been learning for past 1 month. i wonder how to create dependency field for textbox.

 

 

for example:  i have a picklist with 2 values 

                          1.Nurse

                          2.Doctor

 

If i choose doctor 

 

following textfields should be active.

 

1.operation details

2.patient to operate on

3.type of operation etc,..

 

can anyone explain me clearly, to understand it easily