• Ron9
  • NEWBIE
  • 15 Points
  • Member since 2012

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

Hey

Can anyone help me understand why using page parameters don't work when using rendered?

 

I've tried this, which only works if I remove the rendered  property from the outputPanel: 

<apex:page standardController="Parent__c" >
    <apex:pageBlock title="Children for {!Parent__c.name}">
        <apex:form >
            <apex:pageBlockTable value="{!Parent__c.Children__r}" var="child">
                  <apex:column headerValue="Name" >
                      <apex:commandLink rerender="detail"> 
                          {!child.Name}
                          <apex:param name="cid" value="{!child.id}"/>
                      </apex:commandLink>
                  </apex:column>
            </apex:pageBlockTable>
        </apex:form>
    </apex:pageBlock>
    <apex:outputPanel id="detail" rendered="{!$CurrentPage.parameters.cid!=''}">
        <apex:detail subject="{!$CurrentPage.parameters.cid}" relatedList="true" title="false" relatedListHover="true"/>
        ...some other stuff...
     </apex:outputPanel>
</apex:page>

 I hope anyone can help me get a bit wiser, thanks

 

- Ronni

  • July 30, 2013
  • Like
  • 0

Hi everyone

 

For some time I've been a big fan of the force.com IDE apex test runner to run my unittests when developing.

But lately It has become so slow that its next to useless for me. I'm just running a single test class at a time, but it may take 10 min where my IDE is not responding before the test result is ready.

 

Does anyone have similar experiences (and maybe some fix) ?

I don't know if this is something that has been changed on the SFDC end of things or it's my project that has become ill suited ... 

 

Any help or comments are very welcome!

 

Regards,

Ron

 

  • June 27, 2013
  • Like
  • 0

Hey everyone

I'm trying to create a responsive visualforce page, only rerendering the proper pageblocks etc. when needed to avoid doing full page rerenders. BUT I use <apex:messages/> to display error messages and I've not been able to get the apex:messages component to update without doing a full page rerender.

I've tried something like this:

<apex:messages id="msgBlock"/>

...
<apex:commandButton action="{!someMethod} value="button" rerender="msgBlock"/>

 Does anyone know how to do this or something with a simular functionality?

 

Thanks

Ronni

  • March 05, 2013
  • Like
  • 0

Hi

Can anyone help on how to detect that I'm about to bang against the Stack depth governor limit?

 

I was hoping to use the Limits... method to detect whether I was about to hit the limit, but I can't find anything related to the stack depth.

 

Has anyone dealt with this before?

 

Best regards

Ronni

  • February 19, 2013
  • Like
  • 0

Im stuff trying to use the field.addError() method to post validation errors on my VF page.

The standard absolute method call works fine e.g.. customObj.fieldName.addError('myString');

BUT I need to use this with fields I dynamic reference on a generic SObject.

I've tried genericObj.get('fieldname').addError('myString'); but this validates to a method does not exists error

 

Can anyone help me, please?

 

Best Regards

Ronni 

  • July 23, 2012
  • Like
  • 0

Hey

Can anyone help me understand why using page parameters don't work when using rendered?

 

I've tried this, which only works if I remove the rendered  property from the outputPanel: 

<apex:page standardController="Parent__c" >
    <apex:pageBlock title="Children for {!Parent__c.name}">
        <apex:form >
            <apex:pageBlockTable value="{!Parent__c.Children__r}" var="child">
                  <apex:column headerValue="Name" >
                      <apex:commandLink rerender="detail"> 
                          {!child.Name}
                          <apex:param name="cid" value="{!child.id}"/>
                      </apex:commandLink>
                  </apex:column>
            </apex:pageBlockTable>
        </apex:form>
    </apex:pageBlock>
    <apex:outputPanel id="detail" rendered="{!$CurrentPage.parameters.cid!=''}">
        <apex:detail subject="{!$CurrentPage.parameters.cid}" relatedList="true" title="false" relatedListHover="true"/>
        ...some other stuff...
     </apex:outputPanel>
</apex:page>

 I hope anyone can help me get a bit wiser, thanks

 

- Ronni

  • July 30, 2013
  • Like
  • 0

Hi everyone

 

For some time I've been a big fan of the force.com IDE apex test runner to run my unittests when developing.

But lately It has become so slow that its next to useless for me. I'm just running a single test class at a time, but it may take 10 min where my IDE is not responding before the test result is ready.

 

Does anyone have similar experiences (and maybe some fix) ?

I don't know if this is something that has been changed on the SFDC end of things or it's my project that has become ill suited ... 

 

Any help or comments are very welcome!

 

Regards,

Ron

 

  • June 27, 2013
  • Like
  • 0

Hey everyone

I'm trying to create a responsive visualforce page, only rerendering the proper pageblocks etc. when needed to avoid doing full page rerenders. BUT I use <apex:messages/> to display error messages and I've not been able to get the apex:messages component to update without doing a full page rerender.

I've tried something like this:

<apex:messages id="msgBlock"/>

...
<apex:commandButton action="{!someMethod} value="button" rerender="msgBlock"/>

 Does anyone know how to do this or something with a simular functionality?

 

Thanks

Ronni

  • March 05, 2013
  • Like
  • 0

Hi

Can anyone help on how to detect that I'm about to bang against the Stack depth governor limit?

 

I was hoping to use the Limits... method to detect whether I was about to hit the limit, but I can't find anything related to the stack depth.

 

Has anyone dealt with this before?

 

Best regards

Ronni

  • February 19, 2013
  • Like
  • 0

Im stuff trying to use the field.addError() method to post validation errors on my VF page.

The standard absolute method call works fine e.g.. customObj.fieldName.addError('myString');

BUT I need to use this with fields I dynamic reference on a generic SObject.

I've tried genericObj.get('fieldname').addError('myString'); but this validates to a method does not exists error

 

Can anyone help me, please?

 

Best Regards

Ronni 

  • July 23, 2012
  • Like
  • 0

I am trying to use apex:actionFunction that has one parameter in my apex:page javascript but the parameter is always null and I cannot figure out WHY?

 

I created a simple test page to test what I am doing:

--------------------------------------------------------------------------

<apex:page standardController="Quote" extensions="QuoteLineItems_ControllerExtension">

<apex:pagemessages />
<apex:pageBlock mode="edit">
    <apex:form id="testPage_Form">
        <script language="JavaScript" type="text/javascript">  
            function test1() {
                alert('>> init TEST_PAGE <<');   
                updateTest('this is my test data');
            }
        </script>
        
        <apex:actionFunction name="updateTest" action="{!updateTestData}">
           <apex:param name="test_param1" value="TEST_DUMMY" />
        </apex:actionFunction>
        
        <input type='button' value='TEST 1' onclick='test1();'/>
    </apex:form>
</apex:pageBlock>
</apex:page>

 

Here is a method in my the controller:

--------------------------------------------------

    public PageReference updateTestData() {
        System.Debug('>>> updateTest <<<');
        String test_param1 = ApexPages.CurrentPage().getParameters().get('test_param1');
        System.Debug('>>> test_param1 = '+ test_param1 + ' <<<');
        return null;
    }

 

Debug Log returns:

    >>> updateTest <<<

    >>> test_param1 = null <<<         ?? WHY NULL, expecting 'this is my test data'

 

WHAT am I doing wrong?

ok, here goes another attempt at getting some help with this.

 

Steps:

1) Custom object is created.

2) Custom tab for custom object is created.

    a) This tab shows the default view, just showing a list of object/record names.

3) I click Edit next to "View: All [Go!]" to customize the view.

 

HOWEVER, in order to get to my customized view the user must click [Go!] after opening the tab. How do I get my custom view to display by default?