X-CGP-ClamAV-Result: CLEAN X-VirusScanner: Niversoft's CGPClamav Helper v1.22.2a (ClamAV engine v0.102.2) X-Junk-Score: 0 [] X-KAS-Score: 0 [] From: "Jesse Tayler" Received: from mail-qk1-f194.google.com ([209.85.222.194] verified) by selbstdenker.ag (CommuniGate Pro SMTP 6.3.3) with ESMTPS id 26571525 for webobjects-dev@wocommunity.org; Thu, 07 Oct 2021 18:18:18 +0200 Received-SPF: none receiver=post.selbstdenker.com; client-ip=209.85.222.194; envelope-from=jtayler@oeinc.com Received: by mail-qk1-f194.google.com with SMTP id b65so6456543qkc.13 for ; Thu, 07 Oct 2021 09:18:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oeinc-com.20210112.gappssmtp.com; s=20210112; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=7DNWMdzi86LXapbWC4R11NktSR1+ekvK/x/mabGSoTo=; b=DM9T1NIJmowhJQAAH5msh3OeHHpr+Tb4p016igfjPb0OVwX5XP7bac2yZnDN0/HyLq tThsoWmZSTftm24z7LCi4WPvuT5OfgRIx4wH8d1CpzM2DJG6Y634+iDXyA+5KKXGzlnh PFuhudhzY+7MYrPW7ZhVkeesBDVitLZ+ppzxVUOUUNOndDA5d4hBlfuan5My5OGcNzo6 ntmL04XFHs+CnvhjYHCZW5ZuVsGJWVM8mNgWPHAP0JqoHDTmvZzGtMFD4mt+4UM0xIKL 0yBX8oNYrg0xn8YfZfiinUOtt8PmK6wkr2QnbI8Zb1P8LHrSGwm13WACpgtpmQV679UA TfYw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=7DNWMdzi86LXapbWC4R11NktSR1+ekvK/x/mabGSoTo=; b=fy6IYxpXVQcX+XtdRGFUMvB1eNGWnJEb5kbZtCQnenWN4htY7XFJiJidE6ZqIaCM82 XM91fbdTNdJd9eZiyEfWwioLjODHKnSqU3c2zRzXd4Nc5Ew5d00tJhNb/I5bObcwzuUY pXowaoOSDd30h1QFjhJ1P/J/TIINuiJUu9odeR/VCUqK07NVzfPsAjt4HQdlUh897PuT m833iheRSMiE0zc6YVlodhLMMbCJUPKJbgdTsU6sXMJtIGF6NfWGFG/Bf1D8IJGdjxjI 4e7bBj/J1iPEf+/KrcQeywzb9xMeyCAAZ+j8bxzWvfHIoiaujpwRi5SqAoII6mxNdZ/Z GxPQ== X-Gm-Message-State: AOAM532m0YG8MSnG66RXM87a90byMBZ3zNiBEWrMqHYJGtE0/cg2ME4L 0EGe+Ir61uzoGSxhwYLhuAL4/XgGgIMqxfVCjIQ= X-Google-Smtp-Source: ABdhPJwaUkRSRVfzaHQlaJGH5bcLpxkGjEyb9YhNjE4fSbPze3oc8LcSZl5BMm0UXpDaYz+IJ9DU1g== X-Received: by 2002:a37:2f02:: with SMTP id v2mr4055414qkh.232.1633623476716; Thu, 07 Oct 2021 09:17:56 -0700 (PDT) Return-Path: Received: from [192.168.1.16] ([69.169.5.176]) by smtp.gmail.com with ESMTPSA id j7sm14007035qkl.125.2021.10.07.09.17.55 for (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Oct 2021 09:17:56 -0700 (PDT) Content-Type: multipart/alternative; boundary="Apple-Mail=_63B243BB-8064-4E02-A177-EF00E8369FCA" Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.60.0.2.2\)) Subject: Re: [WO-DEV] Custom WOComponent "not seeing" D2W entity attributes in Inspect page Date: Thu, 7 Oct 2021 12:17:54 -0400 References: To: WebObjects & WOnder Development In-Reply-To: Message-Id: <9571FCE7-230C-4F18-9B48-4D5478A76BFC@oeinc.com> X-Mailer: Apple Mail (2.3654.60.0.2.2) --Apple-Mail=_63B243BB-8064-4E02-A177-EF00E8369FCA Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 You can read the whole model, not sure where your query strings are = there, and I might just put those into your D2W rules myself. You can write rules that reach a session or session.user and write = =E2=80=9C(session.user.role =3D '%@' && active =3D =E2=80=98true')=E2=80=9D= or something using keys that are dynamically filled at runtime -- so = your logic can include both query args and format in rules. I have components that read an array of args from D2W and then a format = string and the query just comes out and fills the list. I can adjust my = D2W rules and see the sort orderings or batch settings and adjust the = qualifier all in rules Maybe that helps > On Oct 7, 2021, at 11:23 AM, Walter Lo Nigro = wrote: >=20 > Dear Listers, >=20 > Another (probably stupid) question for you=E2=80=A6 >=20 > In my D2W Wonder app I have an entity =E2=80=98Registro=E2=80=99 and = set the InspectRegistro page to display a userPresentableDescription = attribute. I have created a custom WOComponent called = =E2=80=98RegistroDocente=E2=80=99 to display this attribute, basically = extending AjaxGrid. I have obviusly set the relevant rule in = d2w.d2wmodel and so far so good but... >=20 > I have also defined some fetch specifications in my EOModeler which = use some $variables, and here=E2=80=99s the problem: I cannot find a way = to get the RegistroDocente component to get hold of attributes in entity = Registro, and I need them to get the fetch specifications working. >=20 > Am I supposed to bind these attributes/variables somewhere? Is there a = specific EOEditingContext I must use for this? I am stunned :-/ >=20 > Thank you for helping > Walter >=20 > *** Walter Lo Nigro, Trieste, Italy - http://www.wln.it = *** > *** Choral Activities, "G. Tartini" Conservatory, Trieste *** > *** Freelance conductor, RiscOS/ROOL registered developer *** >=20 --Apple-Mail=_63B243BB-8064-4E02-A177-EF00E8369FCA Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 You = can read the whole model, not sure where your query strings are there, = and I might just put those into your D2W rules myself.

You can write rules that reach a = session or session.user and write =E2=80=9C(session.user.role =3D '%@' = && active =3D =E2=80=98true')=E2=80=9D or something using keys = that are dynamically filled at runtime -- so your logic can include both = query args and format in rules.

I have components that read an array of = args from D2W and then a format string and the query just comes out and = fills the list. I can adjust my D2W rules and see the sort orderings or = batch settings and adjust the qualifier all in rules

Maybe that helps

On Oct 7, 2021, at 11:23 AM, Walter Lo Nigro <webobjects-dev@wocommunity.org> wrote:

Dear Listers,

Another (probably = stupid) question for you=E2=80=A6

In my D2W Wonder app I have an entity = =E2=80=98Registro=E2=80=99 and set the InspectRegistro page to display a = userPresentableDescription attribute. I have created a custom = WOComponent called =E2=80=98RegistroDocente=E2=80=99 to display this = attribute, basically extending AjaxGrid. I have obviusly set the = relevant rule in d2w.d2wmodel and so far so good but...

I have also defined some = fetch specifications in my EOModeler which use some $variables, and = here=E2=80=99s the problem: I cannot find a way to get the = RegistroDocente component to get hold of attributes in entity Registro, = and I need them to get the fetch specifications working.

Am I supposed to bind = these attributes/variables somewhere? Is there a specific = EOEditingContext I must use for this? I am stunned :-/

Thank you for = helping
Walter

***  Walter Lo Nigro, Trieste, Italy =  -  http://www.wln.it  ***
*** =  Choral Activities, "G. Tartini" Conservatory, Trieste =  ***
***  Freelance conductor, = RiscOS/ROOL registered developer  ***


= --Apple-Mail=_63B243BB-8064-4E02-A177-EF00E8369FCA--