• Icaro
  • NEWBIE
  • 0 Points
  • Member since 2013

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 3
    Replies
HI,

Why when i click on Close Case button it wont disappears from the screen ?
I can close my cases how many times i want... and i dont want this...

Someone know how do i fix it ?

I Looked everywhere on case object and i dont find nothing about it.

Thanks
  • April 30, 2014
  • Like
  • 0

Hello guys !!! 

I'm having a problem with dynamics columns and table !! I would like to pass param to controller each time that I have a new line on the table.

This is the line to send the value: apex:param name="name" value="{!func.name}" id="name"/>

But when arrive in the method, the value of "name" is null. Look the code below !!


/* VISUALFORCE */
apex:pageBlockTable value="{!listFuncionario}" var="func"> //LINE

       apex:column headerValue="Funcionario">
              apex:outputField value="{!func.name}"/>
       /apex:column>

       apex:param name="name" value="{!func.name}" id="name"/>

       apex:repeat value="{!ApoioStaff}" var="eachDay">
              apex:column headerValue="{!eachDay.Diad__c}" >
                     apex:inputField value="{!eachDay.Diad__c}" />
              /apex:column>
        /apex:repeat>
/apex:pageBlockTable>


/* APEX */


public List<Dia__c> getApoioStaff(){

       this.name = ApexPages.CurrentPage().getparameters().get('name');

       List<Dia__c> days;
       days = [select id, name, Diad__c, FuncionarioPai__r.name from Dia__c where FuncionarioPai__r.name = :this.name];
       return days;
}


Does someone have some idea to solve my problem ?!?!

Thank you so much community !!

  • November 08, 2013
  • Like
  • 0

Hello, how are you ?!?!?

Well, I'm having a problem with my code. I'm trying to do a table with dynamics columns. But to each line I have differents registers. Look down:


 apex:form >
   apex:pageBlock >
      apex:pageBlockTable value="{!listFuncionario}" var="func">

          apex:column headerValue="Funcionario">
                 apex:outputField value="{!func.name}"/>
           /apex:column>

           apex:repeat value="{!staffGet(func.name)}" var="eachDay">
                      apex:column headerValue="{!eachDay.Diad__c}">
                                 apex:inputField value="{!eachDay.Diad__c}"/>
                      /apex:column>
           /apex:repeat>

       /apex:pageBlockTable>

    /apex:pageBlock>
/apex:form>

public List<Dia__c> staffGet(String name){ 
      List<Dia__c> days;
      days = [select id, name, Diad__c, FuncionarioPai__r.name from Dia__c where FuncionarioPai__r.name = :name];
      return days;
}

 


Finally, my problem is in this line: <apex:repeat value="{!staffGet(func.name)}" var="eachDay">

The error message is this: Unknown function staffGet. Check spelling.

I don't know how to solve this problem !!! :-(        

Somebody can help me ?!?!
Thank you so much !!!!!

  • November 07, 2013
  • Like
  • 0

Hi,

I Have 4 Objects Ob1 is master from Ob2 and Ob2 Is Master from Ob3 and Ob3 is Master from 4.

There is any way to create a button in Ob1 to clone it and all the details ?

I'm Starter in SalesForce so, examples will be great.

Thank You

  • September 02, 2013
  • Like
  • 0
HI,

Why when i click on Close Case button it wont disappears from the screen ?
I can close my cases how many times i want... and i dont want this...

Someone know how do i fix it ?

I Looked everywhere on case object and i dont find nothing about it.

Thanks
  • April 30, 2014
  • Like
  • 0

Hello guys !!! 

I'm having a problem with dynamics columns and table !! I would like to pass param to controller each time that I have a new line on the table.

This is the line to send the value: apex:param name="name" value="{!func.name}" id="name"/>

But when arrive in the method, the value of "name" is null. Look the code below !!


/* VISUALFORCE */
apex:pageBlockTable value="{!listFuncionario}" var="func"> //LINE

       apex:column headerValue="Funcionario">
              apex:outputField value="{!func.name}"/>
       /apex:column>

       apex:param name="name" value="{!func.name}" id="name"/>

       apex:repeat value="{!ApoioStaff}" var="eachDay">
              apex:column headerValue="{!eachDay.Diad__c}" >
                     apex:inputField value="{!eachDay.Diad__c}" />
              /apex:column>
        /apex:repeat>
/apex:pageBlockTable>


/* APEX */


public List<Dia__c> getApoioStaff(){

       this.name = ApexPages.CurrentPage().getparameters().get('name');

       List<Dia__c> days;
       days = [select id, name, Diad__c, FuncionarioPai__r.name from Dia__c where FuncionarioPai__r.name = :this.name];
       return days;
}


Does someone have some idea to solve my problem ?!?!

Thank you so much community !!

  • November 08, 2013
  • Like
  • 0

Hello, how are you ?!?!?

Well, I'm having a problem with my code. I'm trying to do a table with dynamics columns. But to each line I have differents registers. Look down:


 apex:form >
   apex:pageBlock >
      apex:pageBlockTable value="{!listFuncionario}" var="func">

          apex:column headerValue="Funcionario">
                 apex:outputField value="{!func.name}"/>
           /apex:column>

           apex:repeat value="{!staffGet(func.name)}" var="eachDay">
                      apex:column headerValue="{!eachDay.Diad__c}">
                                 apex:inputField value="{!eachDay.Diad__c}"/>
                      /apex:column>
           /apex:repeat>

       /apex:pageBlockTable>

    /apex:pageBlock>
/apex:form>

public List<Dia__c> staffGet(String name){ 
      List<Dia__c> days;
      days = [select id, name, Diad__c, FuncionarioPai__r.name from Dia__c where FuncionarioPai__r.name = :name];
      return days;
}

 


Finally, my problem is in this line: <apex:repeat value="{!staffGet(func.name)}" var="eachDay">

The error message is this: Unknown function staffGet. Check spelling.

I don't know how to solve this problem !!! :-(        

Somebody can help me ?!?!
Thank you so much !!!!!

  • November 07, 2013
  • Like
  • 0