cancel
Showing results for 
Search instead for 
Did you mean: 

Enable opening SFMs by Visual Force pages on ServiceMax Go

Enable opening SFMs by Visual Force pages on ServiceMax Go

Enable opening SFMs by Visual Force pages on ServiceMax Go

Basically, there is a chance that we put a custom action to call a Visual Force page (VF page), where we decide which SFM to open.
We can check in the examples below:

Open SFM by VFPage ServiceMax Go.png

The VF page (VF_PageToOpenTheSpecificSFM) have this code:

<apex:page controller="VF_PageToOpenTheSpecificSFM_Controller" action="{!openSFM}"/>
 
The Controller (VF_PageToOpenTheSpecificSFM_Controller) have the correct SFM to open, have this code:
public class VF_PageToOpenTheSpecificSFM_Controller {
if (Condition1 == true){
    PageReference result = rootController.RedirectTo(clazz'SFM_1');
    result.getParameters().put('SVMX_recordId'field);
    result.getParameters().put('SVMX_retURL''/' + retuPage.getUrl());
    return result;
}else{
    PageReference result = rootController.RedirectTo(clazz'SFM_2');
    result.getParameters().put('SVMX_recordId', field);
    result.getParameters().put('SVMX_retURL''/' + retuPage.getUrl());
    return result;
}
 
What is the underlying problem do you intend to solve with this idea?
That you can use the same as the previous apps
How is the problem being addressed today, if at all?
Case 00088329 was opened and they closed it asking to open this idea.
Product Area?
Retail
What version of ServiceMax are you on?
20.1