Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Power Apps Pro Dev & ISV
Unanswered

Error configurando tres variables

(0) ShareShare
ReportReport
Posted on by 2
Buenas tardes comunidad.
 
Acudo a ustedes para ver si me pueden ayudar con la siguiente novedad.
 
Estoy declarando tres variables de la siguiente manera:
 
If(
    !IsBlank(Param("ID"));
   
    // Asignar las variables
    Set(
        VarItem;
        LookUp(
            'RRHH - Cambios de Estructura';
            ID = Value(Param("ID"))
        )
    );
   
    Set(
        VarItem1;
        LookUp(
            'RRHH - Tiempos y Turnos';
            ID = Value(Param("ID"))
        )
    );
   
    Set(
        VarItem2;
        LookUp(
            'RRHH - Accesos y Registro de Tiempo';
            ID = Value(Param("ID"))
        )
    );
   
    Set(
        varFormMode;
        FormMode.Edit
    )
)
 
 
1. No se si puedo definir así las tres variables o si hay algún problema 
2. Cuando voy a invocar la variable VarItem2 en un formulario dentro de la sentencia Item me sale en error.
 
 
Agradezco si me pueden ayudar con ayudar de alguna manera.
 
Saludos.
  • ronaldwalcott Profile Picture
    2,268 on at
    Error configurando tres variables
    Did you interrogate VarItem2 to see if it is a record?
    I presume the Set is in the On start. Did you rerun the On start to see if it gets the value from the table?
     
  • JU-26071530-0 Profile Picture
    2 on at
    Error configurando tres variables
    Hi ,  thanks for the reply, a detailed approach to the issue: 
     
     
    I'm working with three variables:

    - VarItem Using the datasource, from a sharepoint list  "RRHH - Cambios de Estructura"
    - VarItem1 Using the datasource, from a sharepoint list "RRHH - Tiempos y Turnos"
    - VarItem2 Using the datasource, from a sharepoint list "RRHH - Accesos y Registro de Tiempo"

    VarItem is being used in the form (TicketForm), from the "Maestra" screen.

     
    VarItem1 is being used in the form (TicketForm_1), from the "Turnos" screen.
     
     
    VarItem2 is being used in the form (TicketForm_2), from the "Accesos " screen. Displaying the following error:  “Record value was expected.”, the other variables and pages are not getting the same error.
     
     
     
    In the variables setup, the following error is displayed: "There is a behavioral function on a non-behavioral property. You cannot use this property to change values elsewhere in the application."
     
     
     
    Espero esto pueda dar un mejor contexto de la situación.
  • ronaldwalcott Profile Picture
    2,268 on at
    Error configurando tres variables
    What is the error shown?
    What is the data source property of the form?
    If the item doesn't match with the data source you could see errors.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,518 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,734 Most Valuable Professional

Leaderboard