public String idForPageConfiguration(D2WContext c) { String result = c.task() + "_NoEntity"; if (c.dynamicPage() != null) { result = c.dynamicPage(); } else if (c.entity() != null) { result = c.task() + "_" + c.entity().name(); } return result; }
public static D2WContext makeSubContextForDynamicPageNamed(String s, WOSession wosession) { D2WContext d2wcontext = ERD2WContext.newContext(wosession); d2wcontext.setDynamicPage(s); // NOTE AK: for whatever reason, when you set a page config d2wcontext.setEntity(d2wcontext.entity()); d2wcontext.setTask(d2wcontext.task()); d2wcontext.takeValueForKey(D2WModel.One, D2WModel.FrameKey); return d2wcontext; }