• Georgi Atanasov
  • NEWBIE
  • 25 Points
  • Member since 2015

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

Hello,

I am having an approval process in which i would like to have the record unlocked in the Initial Submission stage. So, by default it's locking the record when it's submitted for approval (in Initial Submission). I tried to enter an Field Update Action on a FLAG field, so i can Trigger that FLAG field and unlock the record in the Trigger, but the trigger is fired before locking of the record.
Does anyone has any idea how i can fire the trigger after the record is locked in the Initial Submission stage of the Approval Process.

Thanks.

i am building a visualforce page in that i have to align the apex:image to centre in the table column here is my code

 

<apex:column id="column" onclick="if('{!describe.allFields[fname].isWritable}'=='false') return false; selectSingleField('{!obj['Id']}','{!fname}');"
styleClass="{!IF(describe.allFields[fname].isWritable,'writable','notWritable')}">

<!-- object header (button to make the object master) -->
<apex:facet name="header">

<apex:outputPanel style="text-align:center !important;">
<apex:variable var="cIndex" value="{!IF(cIndex=MaxRecordsCount,0,cIndex+1)}"/>
{!sObjectType} {!TEXT(cIndex)}

<br/>
<apex:outputLink id="state" rendered="{!ISBLANK(obj['Id'])=false}" onclick="selectMaster('{!obj['Id']}'); return false;">

<apex:outputText id="imageSetMaster" title="Set as master record" style="display:{!IF(masterObjectId=obj['Id'],'none','block')};" value="Select Survivor"/>
<apex:image id="imageMaster" value="/img/msg_icons/confirm24.png" title="Master record" style=" margin: 0 auto !important;display:{!IF(masterObjectId=obj['Id'],'block','none')};"/>

</apex:outputLink>
<br/>
<script>
//saves id of the images
if("{!obj['Id']}" != '')
{
masterImage["{!obj['Id']}"] = (esc('{!$Component.imageMaster}'));
setMasterImage["{!obj['Id']}"] = (esc('{!$Component.imageSetMaster}'));
}
</script>
</apex:outputPanel>

</apex:facet>

<apex:outputPanel >

<!-- this input field is needed to know which field is choosen and of what object -->
<apex:inputHidden rendered="{!describe.allFields[fname].isWritable && ISBLANK(obj['Id'])==false && ISNULL(selectedObjFields[obj['Id']])==false}"
value="{!selectedObjFields[obj['Id']][fname].isChecked}"
id="selectedField"/>

<script>
if("{!obj['Id']}" != "")
{
//handles massive click (array of component ID based on object Id and field name)
if(fields["{!obj['Id']}"]==null)
{
fields["{!obj['Id']}"] = new Array();
fieldsInput["{!obj['Id']}"] = new Array();
}
//if the field is not writable, it should not be selected
if('{!describe.allFields[fname].isWritable}'=='true')
{
fields["{!obj['Id']}"]['{!fname}'] = (esc('{!$Component.column}'));
fieldsInput["{!obj['Id']}"]['{!fname}'] = (esc('{!$Component.selectedField}'));
}
//if selected, change the style class
if("true"== jQuery(fieldsInput["{!obj['Id']}"]['{!fname}']).val()) selectSingleField('{!obj['Id']}','{!fname}');
}
</script>

<apex:outputField value="{!obj[fname]}" rendered="{!obj[fname]!=null}"/>


</apex:outputPanel>
</apex:column>

 

the only thing that i want to align apex:img to center in the table column i tried some trick of css but neither working any clue how to do this ??

Hi 

 

 

I am facing an issue with VF to word doc conversion , header is being disaplyed twice on the first page, and header is displayed only once in the remaining all pages.

 

 

 

Thanks

Prajnith