• kfkaal
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 10
    Questions
  • 8
    Replies

I made a VF page with a table which acts as a related list.

 

In the custom object of that list, I have a checkbox. This shows nicely, but it does not write to the object. 

The VF of course, has a surrounding <apex:form> tag.

 

But when I try to read it in the controller, It does not reflect the checkmark status in the ui.

 

I can, however, preset the variable in the controller, and it shows the checkmark.

 

Is it not possible to use a input field in a VF nested page?

 

 

 

 

I have to iterate through a List of a custom object and display the datafields as inputfields.

 

My first field is a Picklist, the second is a Date field.

 

When it's done, it activates the second field (datefield) in the first dataset (it the shows the calendar under the field). I want to have the focus on the first, the Picklist field.

 

Is there any way, how I could determin that the first input field is selected?

I have written my own related list in VF and boud it into the main page this way:

 

 

<apex:include pageName="AccountRelatedListOperDetail_All" />

 

The page contains - amongst others - a list which needs a checkbox in front for selection.

 

 

Reduced code of  the VF page:

 

<apex:form>
<apex:PageBlockTable value="{!odList}" var="op">
...
<apex:column width="20px">
     <apex:inputCheckbox value="{!op.checked}"/>
</apex:column>
...
</apex:PageBlockTable>
</apex:form>

 

odList is a list: List<odWrapper>

 

odWrapper is just a little wapper to wrap the checkmark, the dataobject and other minor things:

 

public with sharing class nxODWrapper {
	public Operation_Detail__c od { get; set; }
	public Boolean checked { get; set; }
	public String RTShortname { get; set; }
	public String HA { get; set; }
}

 

 

My problem:

 

The checkbox does not set the variable 'checked'. When I read the 'checked' variable, it reads null. If I preset it to true before I display the table, the checkboxes are (visually) checked and I can read the variable 'checked' as true. When I uncheck the checkboxes in the ui, the variable 'checked' still has true.

 

 

So, I package 

I did a VF list page which I bind into another's object page as related list. As this list gets very long, I like to just show the first few datasets and have a commandlink, saying that you can click on it to see all entries. 

 

Instead of creating my own VF page for this long list, I would rather use the standard listpage of that object when I click on its tab. But I would need to have a simple filter, like if it was the Contact object, I would like to say, I want to see all contacts of the account where I come from (Id).

 

Any chance to do that with parameters in the URL?

I have a calculated field that calls a google maps image and displys it. It works on a standard page.

 

This is the formula:

HYPERLINK("http://maps.google.com?q=" & Primary_Street_1__c & "%20" & Primary_City__r.Name & "%20" & Primary_State__c & "%20" & Primary_Postal_Code__c & "%20" & Primary_Country__c , IMAGE("/servlet/servlet.FileDownload?file=01530000001hbwB", "Google Map"))

 I try to display that on a VF page and tried all typs of output tags. It allways displays:

<a href="http://maps.google.com?q=XXStreet 6a%20Lakeside%20%2078315%20XXXXX" target="_blank"><img src="/servlet/servlet.FileDownload?file=01530000001hbwB" alt="Google Map" border="0"/></a>

 (Addressdata are taken out here, but work in real life example)

Which tag would I need to get this output as an image (image tag did not work)?

 

 

On my VF page, when I leave a must-field empty, it nicely displays the error message next to the field which throws that error.

 

I have a few fields which have a validation rule defined. If the validationrule fails, it does not show the error next to my VF input field.

 

This is how I treat my errors:

 

In the controller:

try{

    upsert contact;
	            
} catch (Exception e){
     ApexPages.addMessages(e);
}
        	

 At the moment, this error can only be displayed when I use a <apex:pageMessages /> tag.

 

But I really need to display the error messages at field level.

 

 

Amongst other related lists on my page, I have mimiked some lists as a VF page which I linked in with <apex:include...

They should look exactly like the related lists.

 

I achieved this goal - nearly. The styling is my problem.

 

This is how a related List appears:



 

That is how my List comes out:

 

My questions: 

- How could I put the image in the upper left corner?

- How can I put a frame around the text?

 

For the latter, i tried all sort of apex:outputPanel and PageblockSection combinations

We have build a special Account / Contact page with this code:

 

 

<apex:page standardController="Contact" extensions="combinedAccountExt" tabstyle="Account">
  
    <apex:form >
         <apex:pageBlock title="Single Account" mode="Edit">
              <apex:pageBlockButtons >
...
              </apex:pageBlockButtons> 
            <apex:pageBlockSection title="Contact">

 

 

I would expect that I would get the appearance of a Account edit page.
But: I get a page with the high bars for the sections with the title in it - like in view mode. 
I rather would like to see thin lines to on top of the section headers as in the standard edit mode.
What am I doing wrong?
 ....

 

 

I want to write my own account page in VF. 

 

My problem: I cannot show the Object type (Account) and the object's name on top of the page together with the symbol, the standard page has in the upper left corner.

 

Is there a standard function or do I need to mimik the SFDC's behaviour myself? In the latter case: how do I get the symbol or do I need to put a copy into the static resources?

Hi,

 

I need to route a user's request depending on the content of a field either to the standard Editpage (or Detailpage), something like the recordType.

 

In other words: In Accounts, when I click the "Edit" button, it should look into the field "isNewDesign" and depending on that content guide me either to a VF page or the standard Account editpage.

 

I tried to overwrite the standard button and route that to a VF page which stays, or if I need the standard Editor, call the URL '/accountid/e'. But that takes me to the overwritten button and thus to my VF page again.

 

Any idea, how I could call the editor of Accounts other than the URL "/accountid/e"?

  • April 21, 2011
  • Like
  • 0

I have to iterate through a List of a custom object and display the datafields as inputfields.

 

My first field is a Picklist, the second is a Date field.

 

When it's done, it activates the second field (datefield) in the first dataset (it the shows the calendar under the field). I want to have the focus on the first, the Picklist field.

 

Is there any way, how I could determin that the first input field is selected?

I have written my own related list in VF and boud it into the main page this way:

 

 

<apex:include pageName="AccountRelatedListOperDetail_All" />

 

The page contains - amongst others - a list which needs a checkbox in front for selection.

 

 

Reduced code of  the VF page:

 

<apex:form>
<apex:PageBlockTable value="{!odList}" var="op">
...
<apex:column width="20px">
     <apex:inputCheckbox value="{!op.checked}"/>
</apex:column>
...
</apex:PageBlockTable>
</apex:form>

 

odList is a list: List<odWrapper>

 

odWrapper is just a little wapper to wrap the checkmark, the dataobject and other minor things:

 

public with sharing class nxODWrapper {
	public Operation_Detail__c od { get; set; }
	public Boolean checked { get; set; }
	public String RTShortname { get; set; }
	public String HA { get; set; }
}

 

 

My problem:

 

The checkbox does not set the variable 'checked'. When I read the 'checked' variable, it reads null. If I preset it to true before I display the table, the checkboxes are (visually) checked and I can read the variable 'checked' as true. When I uncheck the checkboxes in the ui, the variable 'checked' still has true.

 

 

So, I package 

I did a VF list page which I bind into another's object page as related list. As this list gets very long, I like to just show the first few datasets and have a commandlink, saying that you can click on it to see all entries. 

 

Instead of creating my own VF page for this long list, I would rather use the standard listpage of that object when I click on its tab. But I would need to have a simple filter, like if it was the Contact object, I would like to say, I want to see all contacts of the account where I come from (Id).

 

Any chance to do that with parameters in the URL?

Amongst other related lists on my page, I have mimiked some lists as a VF page which I linked in with <apex:include...

They should look exactly like the related lists.

 

I achieved this goal - nearly. The styling is my problem.

 

This is how a related List appears:



 

That is how my List comes out:

 

My questions: 

- How could I put the image in the upper left corner?

- How can I put a frame around the text?

 

For the latter, i tried all sort of apex:outputPanel and PageblockSection combinations