Skip to main content

Hi Unifacers,

I would like to build a dedicated testing environment out of test from development environment.
First thing first, I need to pass current component being modified to my separate uniface application.

How to do that?

I've understood component name under modification is maintained from IDF into $p_formname$ local variable of component UUETXN65, the one starting test mode.
I've tried to start my uniface application using %%$p_formname$%%% as parameter but I am finding that exact string "%%$p_formname$%%%" into my separate Uniface application, without any substitution.

Any idea?

Gianni


Hi Unifacers,

I would like to build a dedicated testing environment out of test from development environment.
First thing first, I need to pass current component being modified to my separate uniface application.

How to do that?

I've understood component name under modification is maintained from IDF into $p_formname$ local variable of component UUETXN65, the one starting test mode.
I've tried to start my uniface application using %%$p_formname$%%% as parameter but I am finding that exact string "%%$p_formname$%%%" into my separate Uniface application, without any substitution.

Any idea?

Gianni


Hi

In version 9, current component is in $$UP_0 (UUETXN65 updates $p_formname$ from it, probably).

In version 10, it seems easier by defining an editorMenuCallback. The option is going to appear at Actions menu and as first parameter you will receive the object url (cpt:CURRENT_COMPONENT).

Hope this helps


Hi Unifacers,

I would like to build a dedicated testing environment out of test from development environment.
First thing first, I need to pass current component being modified to my separate uniface application.

How to do that?

I've understood component name under modification is maintained from IDF into $p_formname$ local variable of component UUETXN65, the one starting test mode.
I've tried to start my uniface application using %%$p_formname$%%% as parameter but I am finding that exact string "%%$p_formname$%%%" into my separate Uniface application, without any substitution.

Any idea?

Gianni


Hi Gianni,


I don't understand the exact Problem.

What is your requirement?

Do you need to transfer compiled resources to your test environment?

Do you want to run IDE.exe or UNIFACE.exe?

What about IDE Menu Plug-Ins and "spawn" the application?


Regards

Norbert


Hi

In version 9, current component is in $$UP_0 (UUETXN65 updates $p_formname$ from it, probably).

In version 10, it seems easier by defining an editorMenuCallback. The option is going to appear at Actions menu and as first parameter you will receive the object url (cpt:CURRENT_COMPONENT).

Hope this helps

Hi Luis,

THANKS! That's what I was looking for... 🙂

Gianni


Hi

In version 9, current component is in $$UP_0 (UUETXN65 updates $p_formname$ from it, probably).

In version 10, it seems easier by defining an editorMenuCallback. The option is going to appear at Actions menu and as first parameter you will receive the object url (cpt:CURRENT_COMPONENT).

Hope this helps

Hi,

There are also a test logicals available in the IDE which might help you

; IDE Test Logicals: Customize the command used to test form, report, and service components. 
; The default command uses the current IDE configuration.
TEST_COMMAND_CPT = %ExeFile /adm=%AdmDir /dir=%WorkDir /asn=%AsnFile /ini=%IniFile /tst %CptName

Kind regards,

Mike