• 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: isEntityEditable still showing space when false
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isEntityEditable still showing space when false


  • Subject: Re: isEntityEditable still showing space when false
  • From: Theodore Petrosky <email@hidden>
  • Date: Thu, 09 Feb 2012 06:56:37 -0800 (PST)

something more.

the problem is surfacing on the default tab. My login method (if successful) returns:

		return ((Session)session()).navController().listAdReleaseAction();

Here is my listAdReleaseAction:

public WOComponent listAdReleaseAction() {
	EOEditingContext ec = ERXEC.newEditingContext();
	ec.lock();
	try {
		EODatabaseDataSource ds = new EODatabaseDataSource(ec, ADRELEASE);

		ERXFetchSpecification<AdRelease> fs = new ERXFetchSpecification<AdRelease>(AdRelease.ENTITY_NAME,
	ERXQ.equals(AdRelease.IS_CLOSED_KEY, false).and(AdRelease.AD_TYPE.eq("P")), null);

		ds.setFetchSpecification(fs);

		ERDListPageInterface lpi = (ERDListPageInterface) pageForConfigurationNamed("ListAdRelease");

		lpi.setDataSource(ds);

		if(lpi instanceof D2WPage) {
			D2WPage page = (D2WPage)lpi;
			page.d2wContext().takeValueForKey("ListAdRelease", "navigationState");
		}

		return (WOComponent) lpi;
	}
	finally {
		ec.unlock();
	}
}

What's interesting is that the LftActionCell does indeed go away on my second tab. the second tab's action method returns a slightly different subset of the data ((AdRelease.AD_TYPE.eq("D"))).

So if I am logged in as a user that has no permission to edit, tab one's table shows the space for the LftActionCell. But tab2 does not exhibit this anomaly.

I am going to examine my rules carefully. Maybe there is something different between these two tabs.

Ted


--- On Thu, 2/9/12, David LeBer <email@hidden> wrote:

> From: David LeBer <email@hidden>
> Subject: Re: isEntityEditable still showing space when false
> To: "Theodore Petrosky" <email@hidden>
> Cc: email@hidden
> Date: Thursday, February 9, 2012, 8:42 AM
> What does the method
> session.user.security.canEditAdRelease() look like?
>
> D
>
> --
> David LeBer
> Codeferous Software
>
> On 2012-02-09, at 12:43 AM, Theodore Petrosky wrote:
>
> > I have a boolean to control isEntityEditable. My users
> that have this set to false still have a  LftActionCell
> that takes up space. So, If I log in, I can edit rows and I
> see the Edit button. Jane logs in and can not edit entries.
> There are no Edit buttons but the space exists.
> >
> >
> > 101 : entity.name = 'AdRelease' => isEntityEditable
> = {"conditionKey" =
> "session.user.security.canEditAdRelease"; "trueValue" =
> "true";
> > }
> [er.directtoweb.assignments.delayed.ERDDelayedBooleanAssignment]
> >
> > Am i doing this wrong? I would like to get rid of the
> space.
> >
> > Ted
> > _______________________________________________
> > 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: 
 >Re: isEntityEditable still showing space when false (From: David LeBer <email@hidden>)

  • Prev by Date: Re: isEntityEditable still showing space when false
  • Next by Date: Re: ERD2WMultiItemCustomComponent and CSS
  • Previous by thread: Re: isEntityEditable still showing space when false
  • Next by thread: OVERRIDE AjaxInPlaceEditor
  • Index(es):
    • Date
    • Thread