-
ChatterFeed
-
2Best Answers
-
2Likes Received
-
0Likes Given
-
37Questions
-
33Replies
Visualforce, JavaScript, and localization
<apex:outputText id="currweek" style=" align : center ; " value="W{0,date,w}"> <apex:param value="{!tk.StopTime__c}"/> </apex:outputText>
However, the timestamp is GMT, not localized. I'm GMT+5, so I get the wrong results after 7pm Saturdays.
The documentation suggests using $A.localizationService.formatDate(...), but placing it around the 0, or around the param value attribute don't pass the editor syntax checks.
Thanks in advance for any clarity you can provide.
-
- John L.
- October 28, 2023
- Like
- 0
- Continue reading or reply
Specifying type for Map<String,Schema.SObjectField>
The particular types of interest are "Auto Number" and "Date/Time".
Thanks in advance for any insight you may provide.
-
- John L.
- April 25, 2021
- Like
- 0
- Continue reading or reply
Global merge field for https://<instanceid>.salesforce.com
Thanks in advance for any help you can provide.
-
- John L.
- December 27, 2017
- Like
- 0
- Continue reading or reply
toolbarGroup onclick attribute doesn't seem to work
<apex:toolbar id="theToolbar"> <apex:toolbarGroup onclick="javascript: window.alert('myData');" id="Data"> <apex:outputText value="Data"/> </apex:toolbarGroup> </apex:toolbar>Much to my surprise, nothing happens.
Thanks in advance for any help you can provide.
-
- John L.
- November 16, 2017
- Like
- 0
- Continue reading or reply
Is there a VisualForce Global Variable that contains the current logo URL?
Currently, this is https://na64.salesforce.com/img/seasonLogos/Winter_18_yeti_175x65.png, displayed in the upper left corner of the Home page (highlighted by surrounding box in following):
If not, how may I go about placing a request for this functionality?
Thanks in advance for any help you may be able to provide.
-
- John L.
- November 04, 2017
- Like
- 0
- Continue reading or reply
walking first.... (part deux)
-
- John L.
- April 28, 2017
- Like
- 0
- Continue reading or reply
walking first...
<apex:page applyBodyTag="false"> <body bgcolor="590059"> </body> </aplex:page>
Can anyone provide insight as to how I can accomplish the desired result?
-
- John L.
- April 28, 2017
- Like
- 0
- Continue reading or reply
Hosting a (very simple) Java applet on a salesforce.com web-page
import javax.swing.JApplet;
class HelloWorld extends JApplet {
public void init() {
System.out.println("HelloWorld.init()");
}
public void start() {
System.out.println("HelloWorld.start()");
}
public void stop() {
System.out.println("HelloWorld.stop()");
}
public void destroy() {
System.out.println("HelloWorld.destroy()");
}
}
The manifest file is:
Manifest-Version: 1.0
Application-Name: HelloWorld
Main-Class: HelloWorld
Application-Library-Allowable-Codebase: https://csseht.na5.visual.force.com/resource/1421524096000/
Codebase: https://csseht.na5.visual.force.com/resource/1421524096000/
Permissions: all-permissions
Sealed: true
The error that occurs is:
RuntimeException: java.lang.reflect.InvocationTargetException
and I suspect a "chicken-and-egg" type scenario. I am unable to specify the correct path in the manifest file, as the Static Resource name/URL location is assigned when the Static Resource is uploaded and saved. (a timestamp-based algorithm of some sort, I suspect).
Thanks in advance for any help you may be able to provide
-
- John L.
- January 20, 2015
- Like
- 0
- Continue reading or reply
Where can I find pre-requisite level info for using Java 1.6 and SforceServiceLocator? [Axis, javax.xml.rpc]
My SforceServiceLocator.class may also be suspect. Where can I find the Java source?
Thanks in advance.
-
- John L.
- January 14, 2014
- Like
- 1
- Continue reading or reply
Where can I find documentation on the following Java class: com.sforce.soap.enterprise.SoapBindingStub?
Thanks in advance for any help you may be able to provide.
-
- John L.
- January 09, 2014
- Like
- 1
- Continue reading or reply
Problem using dynamicComponent tag
I have the following Apex tag:
<apex:dynamicComponent componentValue="{!eT}"/>
that results in the following error when attempting a Quick Save:
Error: Cannot convert the value of '{!eT}' to the expected type.
The pertinent controller class methods are as follows:
public sObject super(String s) { EmailTemplate t = ooo return (sObject) t; } public sObject getET() { return super('{!tmpl.DeveloperName__c}'); }
The error occurs when the methods return either "sObject" or "EmailTemplate" object types.
Thanks in advance for any help you may be able to provide.
-
- John L.
- November 15, 2013
- Like
- 0
- Continue reading or reply
How can I add a field/attribute to the EmailTemplate object, OR create a new object (with adds)
I'm doing development, and need to extend the existing EmailTemplate object.
How do I add a field/attribute to this object, OR how do I create a new object that includes all the fields/attributes of the EmailTemplate + my additions?
Is there anyway to accomplish this other than a brute-force object creation, that copies the original attributes item by item and requires manual updates if the original EmailTemplate object definition is ever changed in the future?
Said another way, I'd like my changes to be added to any current (or future) definition of the EmailTemplate object.
Thanks in advance for any help you may be able to provide.
-
- John L.
- November 14, 2013
- Like
- 0
- Continue reading or reply
Is Data Loader access available on Enterprise (or Unlimited) Edtion for production admin users?
Hello,
I'm familiar with Developer Edition, but not Enterprise or Unlimited Edition.
Could someone verify for me that Data Loader can provide read & write access to production data via an Administrator userid? What, if any, are the restrictions on performing this type of Data Maintenance? I am familiar with other database systems, and this type of Maintenance typically occurs in a DBA sole-access time-window off-shift, without active production users using the system
The Data Maintenance I am looking to perform is solely initailizing new userids, passwords, etc.. My thinking is that this can occur during first-shift, with active users on the system, with no disruption of service.
Any experience or insight you can offer would be appreciated.
-
- John L.
- April 13, 2012
- Like
- 0
- Continue reading or reply
Two attempts to build a .jar file
I have made two attempts at building a Java .jar file:
#1a) With this manifest file:
E:\EHT\src\META-INF>type MANIFEST.MF
Manifest-Version: 1.0
Class-Path: com com.CustomizedSoftwareSolutions com.CustomizedSoftware
Solutions.EHT lib
Created-By: 1.5.0_14 (Sun Microsystems Inc.)
Main-Class: com.CustomizedSoftwareSolutions.EHT.HTMLifyEHT
#1b)...and these .jar contents
E:\EHT\src\META-INF>cd ..
E:\EHT\src>jar tvf EHT.jar
0 Sat Sep 12 10:37:46 EDT 2009 META-INF/
187 Sat Sep 12 10:37:46 EDT 2009 META-INF/MANIFEST.MF
3255 Sat Sep 12 10:36:16 EDT 2009 com/CustomizedSoftwareSolutions/EHT/HTMLifyE
HT.CLASS
#1c)...I get these results:
E:\EHT\src>java -jar EHT.jar
Exception in thread "main" java.lang.NoClassDefFoundError: HTMLifyEHT
In the second case, I avoided the minimalist approach, and threw in the kitchen sink to boot:
2a) With this manifest....
E:\EHT\src\META-INF>type MANIFEST.MF
Manifest-Version: 1.0
Class-Path: com com.CustomizedSoftwareSolutions com.CustomizedSoftware
Solutions.EHT org org.apache org.apache.axis org.apache.log4j javax j
avax.xml javax.xml.rpc
Created-By: 1.5.0_14 (Sun Microsystems Inc.)
Main-Class: HTMLifyEHT
#2b)...and jar contents too large to post in this thread (but verified to include my class, and everyone else's class)
E:\EHT\src\META-INF>cd ..
E:\EHT\src>jar tfv EHT.jar >jarout.txt
#2c)...I get the same result
E:\EHT\src>java -jar EHT.jar
Exception in thread "main" java.lang.NoClassDefFoundError: HTMLifyEHT
Thanks in advance for your time and consideration.
-
- John L.
- September 12, 2009
- Like
- 0
- Continue reading or reply
How to join two Objects into one PageBlockTable
I have the following concept page:
<apex:page controller="UTPageBlockTable"> <apex:pageBlock > <apex:pageBlockTable value="{!join}" var="h"> <apex:column value="{!h.Name}"/> <apex:column value="{!h.oId}"/> </apex:pageBlockTable> </apex:pageBlock> </apex:page>
with the controller:
public class UTPageBlockTable { public List<UTJoin> getJoin() { List<UTJoin> result = new List<UTJoin>(); UTJoin record = new UTJoin(); User one = [ SELECT Name FROM User LIMIT 1 ]; Organization two = [ SELECT Id FROM Organization LIMIT 1 ]; record.Name = one.Name; record.oId = two.Id; result.add(record); record.Name = 'MyOtherUser'; record.oId = '01p700000004hau'; result.add(0,record); return result; } }
and the Apex Class:
public class UTJoin { public String Name; public Id oId; }
When the page is displayed, I get the "none-too-descriptive" error page:
getName()
To me, this appears to be a Salesforce.com error. Customer Support directed me to this Discussion Board for guidance.
Thanks in advance for any help you may be able to provide.
-
- John L.
- August 05, 2009
- Like
- 0
- Continue reading or reply
Standard Filter for Summary Report of Activities too restrictive
I'm trying to develop a report summarizing Activities by Status. I cannot exclude (or modify) the Standard Filter, which provides the choices to Show 1) Open Activities, 2) Closed Activities, OR 3) Open & Closed Activities. I'd like to be able to show All Activities with *ANY* Status (ie to include Not Started/Deferred, etc.) or the option to disable the Standard Filter entirely.
Can this restriction be circumvented with the Reporting software as it is currently?
Thanks in advance for any help you may provide.
-
- John L.
- July 22, 2009
- Like
- 0
- Continue reading or reply
Javascript invocation of actionFunction: Can it be done?
<apex:page> <apex:form> <apex:actionFunction name="fubar" action="{!myApexMethod}"> <apex:param name="firstParam" assignTo="{!myflag}" value=""/> </apex:actionFunction> </apex:form> <script type="text/javascript"> fubar('{!$Profile.Id}'); </script> </apex:page>
the getMyFlag method seems to run at "page-delivery time", rather than at client-side "page-load time". Is there anyway to change this apparent behavior?
I'm not interested in how it works (if it can), just how to make it work with the current implemetation.
Thanks in advance for any help you may provide.
-
- John L.
- July 04, 2009
- Like
- 0
- Continue reading or reply
Extraneous function return output info in my System.debug messages
I'm having trouble removing/disabling the following system-supplied System.debug output line:
20090620211041.352:Class.CSSEHT.SOQL.DescribeIt: line 109, column 43: returning String from method public String setTabs(Integer) in 1 ms
This information may be useful in some cases, but I'm currently interested in suppressing this output. I've tried setting the LoggingLevel to various values,(via the "System.debug(Logginglevel.ERROR);" invocation) to no avail.
THanks in advance for any insight you may be able to provide.
-
- John L.
- June 20, 2009
- Like
- 0
- Continue reading or reply
Transferring updated variable value from Radio Button selection to Component attribute
<apex:form style="{ height : 201px }" > <apex:selectRadio value="{!upgrade}" layout="pageDirection"> <apex:selectOptions value="{!upgrades}"/> </apex:selectRadio><br/> <apex:commandButton onclick="javascript:doConfirmUp();" value="{!Btn_Go}" rerender="out1" status="status" action="{!go}"/> </apex:form> <apex:outputPanel id="out1"> <apex:actionstatus id="status"><apex:outputPanel > <c:CSSUTLConfirmPopup id="uPopupWindow" confirmURL="{!$Site.Name}/home/home.jsp" page="CSSUTLConfirmPopup" todo="doConfirmUp" retURL="{!$CurrentPage.URL}" to="{!upgrade}" from="{!currentSystemLevel}"/> </apex:outputPanel> </apex:actionstatus></apex:outputPanel>
I'm trying to accomplish the subject task with the above Apex markup. I've based the above attempt on an example for a SelectRadio tag in the Visualforce Developer's Guide.
I also tried the above without the <apex:outputpanel id="out1"><apex:actionstatus><apex:outputpanel> nesting. This worked as I might reasonably expect, however the updated variable value from the user interaction, {!upgrade}, was not provided. The variable {!currentSystemValue}, set via a controller "set" method, was populated correctly.
It is not clear to me how the updated variable value is re-introduced into the page, or if this combination of tags is valid or not.
Thanks in advance for your time and consideration.
-
- John L.
- May 30, 2009
- Like
- 0
- Continue reading or reply
Multi-instance pick-lists in a PageBlockTable
I've been asked to post this question here, as it may be a more appropriate venue than the Apex Code Development Discussion Board, where it originally appeared. Pardon the duplication is you're a regular reader of both boards.
I'm having trouble retrieving the value of pick-lists, one per line-item, in a PageBlockTable.
I have been able to display the lists, which then also correctly display the appropriate values from the database.
The user documentation seems vague in this area, specifically in locating any user modifications. My best guess is via a reference such as:
Page.pagename.ulist.users.level.ulvl.getValue() , where "ulist" is the id of the PageBlock, "users" is the id of the PageBlockTable, "level" is the id of the SelectList, and "ulvl" is the id of the SelectOptions tag. Admittedly, there is no line-item selector in this best guess, and the Apex compiler indicates I have guessed incorrectly.
I had thought the in-storage attribute would be updated (the data from the original SOQL Select that determined the initial value), however that was not the case.
Thanks in advance for any help you may be able to provide.
-
- John L.
- May 19, 2009
- Like
- 0
- Continue reading or reply
Where can I find pre-requisite level info for using Java 1.6 and SforceServiceLocator? [Axis, javax.xml.rpc]
My SforceServiceLocator.class may also be suspect. Where can I find the Java source?
Thanks in advance.
-
- John L.
- January 14, 2014
- Like
- 1
- Continue reading or reply
Where can I find documentation on the following Java class: com.sforce.soap.enterprise.SoapBindingStub?
Thanks in advance for any help you may be able to provide.
-
- John L.
- January 09, 2014
- Like
- 1
- Continue reading or reply
Specifying type for Map<String,Schema.SObjectField>
The particular types of interest are "Auto Number" and "Date/Time".
Thanks in advance for any insight you may provide.
- John L.
- April 25, 2021
- Like
- 0
- Continue reading or reply
Global merge field for https://<instanceid>.salesforce.com
Thanks in advance for any help you can provide.
- John L.
- December 27, 2017
- Like
- 0
- Continue reading or reply
toolbarGroup onclick attribute doesn't seem to work
<apex:toolbar id="theToolbar"> <apex:toolbarGroup onclick="javascript: window.alert('myData');" id="Data"> <apex:outputText value="Data"/> </apex:toolbarGroup> </apex:toolbar>Much to my surprise, nothing happens.
Thanks in advance for any help you can provide.
- John L.
- November 16, 2017
- Like
- 0
- Continue reading or reply
Hosting a (very simple) Java applet on a salesforce.com web-page
import javax.swing.JApplet;
class HelloWorld extends JApplet {
public void init() {
System.out.println("HelloWorld.init()");
}
public void start() {
System.out.println("HelloWorld.start()");
}
public void stop() {
System.out.println("HelloWorld.stop()");
}
public void destroy() {
System.out.println("HelloWorld.destroy()");
}
}
The manifest file is:
Manifest-Version: 1.0
Application-Name: HelloWorld
Main-Class: HelloWorld
Application-Library-Allowable-Codebase: https://csseht.na5.visual.force.com/resource/1421524096000/
Codebase: https://csseht.na5.visual.force.com/resource/1421524096000/
Permissions: all-permissions
Sealed: true
The error that occurs is:
RuntimeException: java.lang.reflect.InvocationTargetException
and I suspect a "chicken-and-egg" type scenario. I am unable to specify the correct path in the manifest file, as the Static Resource name/URL location is assigned when the Static Resource is uploaded and saved. (a timestamp-based algorithm of some sort, I suspect).
Thanks in advance for any help you may be able to provide
- John L.
- January 20, 2015
- Like
- 0
- Continue reading or reply
Problem in adding all leads name in Picklist
Hi SFDC Developers,
i have one VF page and it contains one Picklist.so now i want to append all Lead names in this picklist.so how i can achiev this?
Thanks & Regards,
SFDC Fun...
- SFDCFun
- November 15, 2013
- Like
- 0
- Continue reading or reply
How can I add a field/attribute to the EmailTemplate object, OR create a new object (with adds)
I'm doing development, and need to extend the existing EmailTemplate object.
How do I add a field/attribute to this object, OR how do I create a new object that includes all the fields/attributes of the EmailTemplate + my additions?
Is there anyway to accomplish this other than a brute-force object creation, that copies the original attributes item by item and requires manual updates if the original EmailTemplate object definition is ever changed in the future?
Said another way, I'd like my changes to be added to any current (or future) definition of the EmailTemplate object.
Thanks in advance for any help you may be able to provide.
- John L.
- November 14, 2013
- Like
- 0
- Continue reading or reply
Two attempts to build a .jar file
I have made two attempts at building a Java .jar file:
#1a) With this manifest file:
E:\EHT\src\META-INF>type MANIFEST.MF
Manifest-Version: 1.0
Class-Path: com com.CustomizedSoftwareSolutions com.CustomizedSoftware
Solutions.EHT lib
Created-By: 1.5.0_14 (Sun Microsystems Inc.)
Main-Class: com.CustomizedSoftwareSolutions.EHT.HTMLifyEHT
#1b)...and these .jar contents
E:\EHT\src\META-INF>cd ..
E:\EHT\src>jar tvf EHT.jar
0 Sat Sep 12 10:37:46 EDT 2009 META-INF/
187 Sat Sep 12 10:37:46 EDT 2009 META-INF/MANIFEST.MF
3255 Sat Sep 12 10:36:16 EDT 2009 com/CustomizedSoftwareSolutions/EHT/HTMLifyE
HT.CLASS
#1c)...I get these results:
E:\EHT\src>java -jar EHT.jar
Exception in thread "main" java.lang.NoClassDefFoundError: HTMLifyEHT
In the second case, I avoided the minimalist approach, and threw in the kitchen sink to boot:
2a) With this manifest....
E:\EHT\src\META-INF>type MANIFEST.MF
Manifest-Version: 1.0
Class-Path: com com.CustomizedSoftwareSolutions com.CustomizedSoftware
Solutions.EHT org org.apache org.apache.axis org.apache.log4j javax j
avax.xml javax.xml.rpc
Created-By: 1.5.0_14 (Sun Microsystems Inc.)
Main-Class: HTMLifyEHT
#2b)...and jar contents too large to post in this thread (but verified to include my class, and everyone else's class)
E:\EHT\src\META-INF>cd ..
E:\EHT\src>jar tfv EHT.jar >jarout.txt
#2c)...I get the same result
E:\EHT\src>java -jar EHT.jar
Exception in thread "main" java.lang.NoClassDefFoundError: HTMLifyEHT
Thanks in advance for your time and consideration.
- John L.
- September 12, 2009
- Like
- 0
- Continue reading or reply
How to join two Objects into one PageBlockTable
I have the following concept page:
<apex:page controller="UTPageBlockTable"> <apex:pageBlock > <apex:pageBlockTable value="{!join}" var="h"> <apex:column value="{!h.Name}"/> <apex:column value="{!h.oId}"/> </apex:pageBlockTable> </apex:pageBlock> </apex:page>
with the controller:
public class UTPageBlockTable { public List<UTJoin> getJoin() { List<UTJoin> result = new List<UTJoin>(); UTJoin record = new UTJoin(); User one = [ SELECT Name FROM User LIMIT 1 ]; Organization two = [ SELECT Id FROM Organization LIMIT 1 ]; record.Name = one.Name; record.oId = two.Id; result.add(record); record.Name = 'MyOtherUser'; record.oId = '01p700000004hau'; result.add(0,record); return result; } }
and the Apex Class:
public class UTJoin { public String Name; public Id oId; }
When the page is displayed, I get the "none-too-descriptive" error page:
getName()
To me, this appears to be a Salesforce.com error. Customer Support directed me to this Discussion Board for guidance.
Thanks in advance for any help you may be able to provide.
- John L.
- August 05, 2009
- Like
- 0
- Continue reading or reply
How to find the distance in miles between two US zip Codes
Hi All,
I need to find the distance in miles. If i provide to two zip codes of US, so it should calculate and give the distance in miles between the two. Can anyone help on this.
Thanks
Ruchie
- Ruchie
- July 23, 2009
- Like
- 0
- Continue reading or reply
How to read the contents of css/HTML file placed in documents or Static Resources.
Hi,
Can anyone please help, how to read the contents of the CSS file or any other file placed in the documents. I need this, so that i can read the contents of CSS and modify the code accordingly, instead modifying in the CSS. Also, this is required, if i place the HTML static code in documents and name the file as header, footer. SO, i need to read the HTML content fom that file, and create the static HTML on the VF Page. I want to use that file as template in the VF page. Please help.
Thanks
- Ruchie
- July 23, 2009
- Like
- 0
- Continue reading or reply
Standard Filter for Summary Report of Activities too restrictive
I'm trying to develop a report summarizing Activities by Status. I cannot exclude (or modify) the Standard Filter, which provides the choices to Show 1) Open Activities, 2) Closed Activities, OR 3) Open & Closed Activities. I'd like to be able to show All Activities with *ANY* Status (ie to include Not Started/Deferred, etc.) or the option to disable the Standard Filter entirely.
Can this restriction be circumvented with the Reporting software as it is currently?
Thanks in advance for any help you may provide.
- John L.
- July 22, 2009
- Like
- 0
- Continue reading or reply
Javascript invocation of actionFunction: Can it be done?
<apex:page> <apex:form> <apex:actionFunction name="fubar" action="{!myApexMethod}"> <apex:param name="firstParam" assignTo="{!myflag}" value=""/> </apex:actionFunction> </apex:form> <script type="text/javascript"> fubar('{!$Profile.Id}'); </script> </apex:page>
the getMyFlag method seems to run at "page-delivery time", rather than at client-side "page-load time". Is there anyway to change this apparent behavior?
I'm not interested in how it works (if it can), just how to make it work with the current implemetation.
Thanks in advance for any help you may provide.
- John L.
- July 04, 2009
- Like
- 0
- Continue reading or reply
How to populate commandButton value and column headerValue with dynamically generated text
Hello
Here the sample of code:
<apex:commandButton value="Edit" />
Instead of using hardcoded text "Edit" I would like populate the value tag with the dynamic text, based on the parameter (MSG_002) passed into apex class .
<apex:commandButton value="MSG_002" />
example of apex class code :
if (msgID== "MSG_002" && user.lang == "en_US" ){ return "Edit"}
else if (msgID== "MSG_002" && user.lang == "ru" ){ return "Menyat'"}
else if (msgID== "MSG_002" && user.lang == "jp" ){ return "Bblala'"}
I have created custom component for outputText
</apex:page>
<c:outputTextSF msgId="MSG_0003" />
</apex:page>
<apex:component controller="LangCompController">
<apex:attribute name="msgId" type="string" Description="MessageID" assignTo="{!feedMessageID}"/>
<apex:componentBody >
{!customMessage}
</apex:componentBody>
</apex:component>
But I have no idea how to handle the following components
<apex:commandButton value=””>
< apex:pageBlock helpTitle=””>
< apex:pageBlock title=””>
< apex:column headerValue =””>
< apex:sectionHeader subtitle =””>
Any thought, ideas how to solve this problem?
- fretus30
- May 22, 2009
- Like
- 0
- Continue reading or reply
Multi-instance pick-lists in a PageBlockTable
I've been asked to post this question here, as it may be a more appropriate venue than the Apex Code Development Discussion Board, where it originally appeared. Pardon the duplication is you're a regular reader of both boards.
I'm having trouble retrieving the value of pick-lists, one per line-item, in a PageBlockTable.
I have been able to display the lists, which then also correctly display the appropriate values from the database.
The user documentation seems vague in this area, specifically in locating any user modifications. My best guess is via a reference such as:
Page.pagename.ulist.users.level.ulvl.getValue() , where "ulist" is the id of the PageBlock, "users" is the id of the PageBlockTable, "level" is the id of the SelectList, and "ulvl" is the id of the SelectOptions tag. Admittedly, there is no line-item selector in this best guess, and the Apex compiler indicates I have guessed incorrectly.
I had thought the in-storage attribute would be updated (the data from the original SOQL Select that determined the initial value), however that was not the case.
Thanks in advance for any help you may be able to provide.
- John L.
- May 19, 2009
- Like
- 0
- Continue reading or reply
How do I highlight a particular value in a list
Sorry if this is a dumb question ... I'm a beginner with VisualForce and searching hasn't turned anything up.
I have a list of objects I want to render but I also want to highlight a particular value as the 'current selection' (i.e. give it a different class to the other elements). This is easy with JSTL: use a foreach tag to iterate over the collection and an if...test tag to check whether the value is the one I want to highlight. Obviously I can use dataList or repeat to iterate over the collection but I can't see any equivalent to if...test.
Any ideas? I can do it with Javascript but that seems very hacky.
- PaulDyson
- May 19, 2009
- Like
- 0
- Continue reading or reply
multi-instance pick-lists in a PageBlockTable
I'm having trouble retrieving the value of pick-lists, one per line-item, in a PageBlockTable.
I have been able to display the lists, which then also correctly display the appropriate values from the database.
The user documentation seems vague in this area, specifically in locating any user modifications. My best guess is via a reference such as:
Page.pagename.ulist.users.level.ulvl.getValue() , where "ulist" is the id of the PageBlock, "users" is the id of the PageBlockTable, "level" is the id of the SelectList, and "ulvl" is the id of the SelectOptions tag. Admittedly, there is no line-item selector in this best guess, and the Apex compiler indicates I have guessed incorrectly.
I had thought the in-storage attribute would be updated (the data from the original SOQL Select that determined the initial value), however that was not the case.
Thanks in advance for any help you may be able to provide.
- John L.
- May 19, 2009
- Like
- 0
- Continue reading or reply