• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Conditional relation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Conditional relation


  • Subject: Re: Conditional relation
  • From: Frank Stock <email@hidden>
  • Date: Tue, 16 Aug 2011 16:49:10 +0200

Because I want to put all the logic in my ERXGlobalrecord-subclass and keep everything in one place. I want to update table B from a method table A
Op 16-aug-2011, om 16:41 heeft Paul D Yu het volgende geschreven:

> So why would you not put the logged in user's information into the Session?
>
> Then use that information to qualify your fetches at the UI level?
>
> Paul
> On Aug 16, 2011, at 10:26 AM, Frank Stock wrote:
>
>> I have never used it but is this something I can put in the ERXTreadStorage? So I can get it from ERXGenericRecord?
>> Op 16-aug-2011, om 15:43 heeft Jesse Tayler het volgende geschreven:
>>
>>> maybe just create a session variable for your authenticatedUser and set that with a login method.
>>>
>>> in another method for accessing the data, check if the session.authenticatedUser exists, and whatever you want before retuning data from table B.
>>>
>>>
>>>
>>> On Aug 16, 2011, at 9:39 AM, Frank Stock wrote:
>>>
>>>> Hi all,
>>>>
>>>>
>>>> How can I solve this:
>>>>
>>>> I have a table A and a table B. If I fetch an object from A, I want an object from B depending on the user that has logged in.
>>>> So I want to add an method in de Class A that is fetching the object from B, but where can I get the user-information?
>>>>
>>>> It is like the use of ERXLocalizer where you get the column in the language you want, but I want the get a relation B, depending on the user information.
>>>>
>>>> Or where can I find more info about the working of 'user info' in the modeler.
>>>>
>>>> Thanks in advance,
>>>> Frank Stock
>>>> Belgium _______________________________________________
>>>> Do not post admin requests to the list. They will be ignored.
>>>> Webobjects-dev mailing list      (email@hidden)
>>>> Help/Unsubscribe/Update your Subscription:
>>>>
>>>> This email sent to email@hidden
>>>>
>>>
>>
>> _______________________________________________
>> Do not post admin requests to the list. They will be ignored.
>> Webobjects-dev mailing list      (email@hidden)
>> Help/Unsubscribe/Update your Subscription:
>>
>> This email sent to email@hidden
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Conditional relation (From: Frank Stock <email@hidden>)
 >Re: Conditional relation (From: Frank Stock <email@hidden>)

  • Prev by Date: Re: Conditional relation
  • Next by Date: Re: Conditional relation
  • Previous by thread: Re: Conditional relation
  • Next by thread: Re: Conditional relation
  • Index(es):
    • Date
    • Thread