• 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: D2W automatically assign a value to an attribute
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W automatically assign a value to an attribute


  • Subject: Re: D2W automatically assign a value to an attribute
  • From: David Holt <email@hidden>
  • Date: Mon, 6 Dec 2010 13:41:22 -0800

Change the display component from a input field to a string.

100 : (pageConfiguration = 'CreateDocument' and propertyKey = 'documentProvider.fullName') => componentName = "ERD2WDisplayString" [com.webobjects.directtoweb.Assignment]

David

On 2010-12-06, at 1:35 PM, Francesco Romano wrote:

> Ok.. today I'm asking stupid questions.. but.. D2W is not so simple with the rule system :)
> I have a page (CreateMovie) which is displayed only if a user is logged in (I disabled the automatic login and added a condition in the navigation menu bind to session.isUserLoggedIn).
> I have a required attribute in the Movie entity named "uploader". What I want to do is not allow the user to insert that name, but retrieve it from session.username().
> How can I do this? I tried a lot of things, but either they don't work or they give exception..
>
> Francesco
>
> PS: the big picture is to make the login on a LDAP server, and then save the username in the session.
>
> _______________________________________________
> 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: 
 >D2W automatically assign a value to an attribute (From: Francesco Romano <email@hidden>)

  • Prev by Date: D2W automatically assign a value to an attribute
  • Next by Date: Re: D2W automatically assign a value to an attribute
  • Previous by thread: D2W automatically assign a value to an attribute
  • Next by thread: Re: D2W automatically assign a value to an attribute
  • Index(es):
    • Date
    • Thread