• Bakul Patel 9
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
I think there is surely something missing in specification regarding following issue. I have a selectList and selectOption specified in page. Certain options are to be shown only in specific condition. I have specified that condition in rendered, but it does not work:
 
{!er.entry.Type__c='OD'}
                	<apex:selectList id="actionsList" multiselect="false" size="1"  value="{!er.action}"  >
                		<apex:selectOption itemValue="--None--" itemLabel="--None--" />  
                		<apex:selectOption itemValue="Edit" itemLabel="Edit" />
                		<apex:selectOption itemValue="Delete" itemLabel="Delete" />
                		<apex:selectOption itemValue="VAT+" itemLabel="VAT+" rendered="{!er.entry.Type__c='OD'}"/>  
                		<apex:selectOption itemValue="VAT-" itemLabel="VAT-" rendered="{!er.entry.Type__c='OD'}"/>
                		<apex:selectOption itemValue="RTB" itemLabel="RTB" rendered="{!er.entry.Type__c='OD'}" />
                		<apex:selectOption itemValue="Invoice+" itemLabel="Invoice+" rendered="{!er.entry.Type__c='OD'}"/> 
                		<apex:selectOption itemValue="VI" itemLabel="VI" rendered="{!er.entry.Type__c='OD'}"/> 
                		<apex:actionSupport event="onchange" action="{!takeAction}" reRender="masterPanel" status="statusSplash">
                			<apex:param value="{!er.entry.id}" name="EntryToUpdate"/>
                		</apex:actionSupport>
                	</apex:selectList>

This produces the view:
Produced list

Check the true/false written above dropdown, which is products from 1st line in code.

So, despite the condition returns true, respective options are not rendered.

Thanks,
Bakul Patel
Can anybody spot a problem in following link?
<apex:commandLink action="{!showTimeEntries}" reRender="panel11" value="Show Time Entries" />

When I click on this link, it shows javascript error : actionUrl.indexOf is not a function or something like that.

If I remove rerender from link, it works fine.

I have used command link and rerender, but never faced this problem.

Just as an additional info, this link is inside a VF component.
Can anybody spot a problem in following link?
<apex:commandLink action="{!showTimeEntries}" reRender="panel11" value="Show Time Entries" />

When I click on this link, it shows javascript error : actionUrl.indexOf is not a function or something like that.

If I remove rerender from link, it works fine.

I have used command link and rerender, but never faced this problem.

Just as an additional info, this link is inside a VF component.