Re open the same item

34 views
Skip to first unread message

Fabio Lenzarini

unread,
Nov 12, 2022, 9:52:39 AM11/12/22
to Jam.py Users Mailing List
Hi all,
I've a Item with a recursive relation; eg:
Project: 2
Project Name: project test
Parent project: 1

From the view of the project 2, by pressing a button, i need to close the project 2 and open the project 1..


2022-11-12 15_46_47-GranPrix.png

When I double-click on the ID 41 on the lower grid:

function project_task(item) {
    var child_table = task.project_task.copy();

    child_table.set_where( {project: item.id.value, id: item.project_task_detail.id.value});
    child_table.set_order_by(['task_date']);
    child_table.view_options.parms = [item.id.value,
                                    item.project.value];
    child_table.view(task.forms_container); // full screen
}

If I use:
child_table.view();

A new popup window are open for the right ID

If I use:
child_table.view(task.forms_container); // full screen
to ope a full screen Item..

don't work.

some help?
thanks
Fabio

Andrew Yushev

unread,
Nov 12, 2022, 2:46:43 PM11/12/22
to Fabio Lenzarini, Jam.py Users Mailing List
Hi, Fabio

When you try to open this form the app tries to find if such a form was already opened.
It uses child_table item_name to find a tab. Try to change it.
I think it won't influence its behavior.

Regards,
Andrew



сб, 12 нояб. 2022 г. в 17:52, Fabio Lenzarini <fabio.l...@gmail.com>:
--
You received this message because you are subscribed to the Google Groups "Jam.py Users Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jam-py+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jam-py/bf4d3125-6424-40d5-86a9-215d8b9ae1c8n%40googlegroups.com.

Fabio Lenzarini

unread,
Nov 13, 2022, 7:12:51 PM11/13/22
to Jam.py Users Mailing List
Right Andrew, now work fine, thanks

doubleItem.png

doubleItem_2.png

Reply all
Reply to author
Forward
0 new messages