Dynamic Parent Property
Hi Gurus,
Requirement - Need to populate Immediate Parent Member details for ACCOUNT DIM.
In ACCOUNT DIM, we have three different Hierarchies - H1, H2 & H3.
As part of the Input Schedule, User needs to select an Account Group for which the plan data will be maintained. I am using EPMSelectMember function for the purpose and a DIMOverride function for populating relevant Account Member values in ROWs.
I have taken Account into ROW Axis and I am able to get the PARENTH1 Values. But User wants PARENT PROPERTY to change based on the Hierarchy selected.
Please advise on how we can get this based on Selection.
Thanks,
Subbu.
Hi Shrikant & Vadim,
I am really sorry for not being able to understand what kind of Screen shot you're expecting....
I am trying it out with simply report - Time DIM on the Col. Axis, Account DIM on the Row Axis and with one Selection for Account Group.
Here I am using EPMSelectMember to an Account Group while the Account DIM is taken in ROW Axis. I have an additional Col. where I am deriving Immediate Parent using EPMMemberProperty for ParentH1.
As I mentioned in my Original post, While H1 is a Main hierarchy, we have alternate hierarchies - H2 & H3. User can select an Account Group from any Hierarchy.
If the user selects an Account group from H2 or H3, I am looking for a possibility of deriving H2 or H3 parent values based on Account Group Selected dynamically without changing the EPM function (EPMMemberProperty for PARENT).
My serious apology for not being able to come up with any screen shot. I do understand that you guys are not sitting with me or discussing with me... I do understand that I need to be as clear as possible to be able to make you guys understand my issue to be able to help me....
Hope you understand.
Thanks,
Subbu.
Similar Messages
-
Passing dynamic System property to applicaiton
Is it possible to pass dynamic system property from the command line to the application in javawebstart. So that my application can get it using System.getProperty() method.
Thanks in Advance,
SaranganHi,
Thanks. But its not possible for us to move to SE 6. Right now we are in JRE 1.5. Is there any other way to pass mulitple/dynamic arguments to the Applicaiton. We will be using only the javaws command line only to invoke the remote application by passing the url(jnlp_url). So we need to pass mulitiple command line arguments to the application through javaws.
Sarangan -
APEX 4.1 dynamic parent child LOV
Is is possible to create a dynamic parent child LOV? I want to be able to use information populated by a user on a form to become a select list on a subsequent form where the second field (child) is dependent on what is selected on the first field (parent). The list needs to grow based on data entered on the initial form and maintain the relationship.
You should post this in the APEX forum.
Oracle Application Express (APEX)
Please open a thread on the APEX forum, update this thread with the link to the new thread and the mark this thread ANSWERED. -
Hi there!
I would like to know, if it is possible to mimic the behavior of XML dynamic class:
var xm:XML =
<question idAttr="atribute xml">
</question>;
trace(xm.attributes());
trace("Attributes: "+xm["attributes"]);
xm["attributes"] = {a:"atr1", b:"atr2"}; (in my dynamic class with attributes function, I get ReferenceError: Error #1037)
trace("Attributes: "+xm["attributes"]);
trace(xm.attributes());
So I can call:
xm.attributes() method which gives me XML attributes
and use
xm["attributes"] = {a:"atr1", b:"atr2"};
which writes to the "attributes" property and not references the XML class function.
My question:
How can I do the same in my custom dynamic class ?
GregoryAs you might noticed some syntaxes of XML class' properties and methods are not conventional to AS3. This, perhaps, hints to the fact that XML class is not an AS3 class in its purest sense. In other words it is probably written in a different language (C? C++?...).
In AS3, unlike in other languages, you cannot name property and method the same. So, there is no way to have both "attributes" property and "attributes()" method.
Nevertheless, if you want to emulate XML functionality to some extend and enumerate/return dynamically set properties, you can definitely do that. This is an excellent case for using accessors (setters and getters):
package
public dynamic class DynamicClass
public function DynamicClass()
public function get attributes():Object {
var obj:Object = { };
for (var prop:String in this) {
obj[prop] = this[prop];
return obj;
public function set attributes(obj:Object):void {
for (var prop:String in obj) {
this[prop] = obj[prop];
Usage:
var dc:DynamicClass = new DynamicClass();
dc.prop2 = "BLAH";
dc.attributes = { propA: "bbb", anotherProp: 456 };
trace(dc["attributes"]);
for (var prop:String in dc.attributes) {
trace(prop, "=", dc.attributes[prop]);
Message was edited by: Andrei1 -
Set a dynamic default property when a page is created?
Is there a way to set a default property that is dynamic for a page when it is created? For example, i want to capture a user id from our system and store it in an "author" property when the page is first created. This value can be changed to a different user by the author but in case they don't set it i want to have it default on page creation.
I guess a better question would be, is there somewhere i can put code so that it will be executed when a page is created?
I considered writing a custom widget and putting this in page properties, but that won't actually run unless page properties has been opened.
ThanksFor anyone in the future, here is how i implemented the event handler -
@Component
public class PageCreationObservation implements EventListener {
Logger log = LoggerFactory.getLogger(this.getClass());
private Session adminSession;
@Reference
SlingRepository repository;
@Activate
public void activate(ComponentContext context) throws Exception {
log.info("Activating PageCreationObservation");
try {
String[] nodetypes = {"cq:Page"};
adminSession = repository.loginAdministrative(null);
adminSession.getWorkspace().getObservationManager().addEventListener(
this, //handler
Event.NODE_ADDED, //binary combination of event types
"/content/appname", //path
true, //is Deep?
null, //uuids filter
nodetypes, //nodetypes filter
false
} catch (RepositoryException e) {
log.error("Unable to register session",e);
throw new Exception(e);
@Deactivate
public void deactivate(){
if (adminSession != null) {
adminSession.logout();
public void onEvent(EventIterator eventIterator) {
try {
while (eventIterator.hasNext()) {
Event newEvent = eventIterator.nextEvent();
log.info("something has been added : {}", newEvent.getPath());
//Check if node exists and it is a content node of the newly created page
if (adminSession.nodeExists(newEvent.getPath())
&& adminSession.getNode(newEvent.getPath()).getProperty("jcr:primaryType").getString().equals("cq:PageContent")) {
Node contentNode = adminSession.getNode(newEvent.getPath());
if (contentNode.getProperty("jcr:createdBy") != null) {
contentNode.setProperty("author", contentNode.getProperty("jcr:createdBy").getString());
adminSession.save();
} catch(Exception e){
log.error("Error while treating page creation events",e); -
Namespace and dynamic custom property access
Hi,
I am trying to dynamically set Custom Property of KM Folder(Repository Framework) using the sample code which I found in one of the SAP site. I have modified the code for my requirement and this is how it looks. What I am not able to understand is the "namespace" part. Can anyone tell me what is this namespace field and how should I modify the code for it to get working.
RID rid = RID.getRID("/documents/TestFolder");
IResource resource = ResourceFactory.getInstance().getResource(rid, resourceContext);
String namespace = "http://com.sap.netweaver.bc.rf.sample/xmlns/sample";
String name = "PublishedOn";
IPropertyName propertyName = new PropertyName(namespace, name);
IProperty property = resource.getProperty(propertyName);
IMutableProperty mutableProperty = property.getMutable();
mutableProperty.setStringValue("10/12/2005");They play the same role as namespaces in XML, RDF or WebDAV. You may want to read http://www.rpbourret.com/xml/NamespacesFAQ.htm.
-
Dynamically parent two layers together with expressions
In AECS6, I have an Image Layer that is using the layer directly above as a Alpha Matte. I want both layers to scale at the same time, unless a certain condition is setup where I only want the matte to scale - leaving the image at original size. Normally I'd just make a new pair of layers and only scale that, but ALL my layers are dynamically linked to eachother for another more complex effect.
I wrote a simple expression to get the current scale of the matte layer (index-1), and then calculate what this particular layer's scale should be. But the scales don't match up just right because we are dealing with percentages... not absolute values. However, if I simply parent the two layers together, it of course works.
So, I either need to find a way to turn the parenting on/off with code, like if THIS, then ParentTo(index-1), or I need to write my scaling script correctly.
Fwiw- here's that script:
if (index != 15)) {
// get the original and current scale value of the layer just above, and calculate an offset
sOrig = thisComp.layer(index-1).transform.scale.valueAtTime(0)[0];
sNow = thisComp.layer(index-1).transform.scale[0];
sOffset = value[0] + (sNow - sOrig);
[sOffset,sOffset]
} else {
// this is layer index 15, don't do anything with it
value;
Appreciate the help!Not sure what you are getting at, but the actual value ranges do not really matter in an expression. It's more likely you are eitehr having an anchor point issue or your keyframes are simply not linear. in the latter case of course a simple subtraction would not give the correct result because values would be exponential/logarithmic/whatever. You'd have to use much more complex code then to accumulate all values over time such as the great Dan Ebberts explains on his website:
http://www.motionscript.com/articles/speed-control.html
Anyway, I suppose you could always use effects rather than native transforms to scale your matte while still leaving it parented. Y' know, there is a Transform effect... That would be much simpler and also avoid the expression evaluation bogging down your system...
Mylenium -
i have a dynamic text box with the name 'prodName'
in the actions layer I have set prodName.text = "something";
prodName.textColor = 0x000000
When I test it, the color code works fine, but the dynamic
text doesnt. I have tried htmlText on and off. Tried embedding and
not embedding. Cant figure out why this wont work. I have done this
before, what am I missing this time?
chers
mm66Well it turns out it was the embedding after all. Turning off
ALL embeded fonts fixes it. So what happens with end users who do
not have the fonts? I recall seeing some posts about that now
cheers for the replys
mm66 -
hello,
i would like to change vi appearence in runtime mode
does anyone know where is the horizontal/ vertical property of vi
same for the stop vi button
Regards
tinnitus
CLAD / Labview 2011, Win Xp
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail
Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte
Solved!
Go to Solution.ok i got it
it was
ref vi -> FP -> array of ref of pane -> scroll bar visiblity
CLAD / Labview 2011, Win Xp
Mission d'une semaine- à plusieurs mois laissez moi un MP...
RP et Midi-pyrénées .Km+++ si possibilité de télétravail
Kudos always accepted / Les petits clicks jaunes sont toujours appréciés
Don't forget to valid a good answer / pensez à valider une réponse correcte -
Hi,
I have a requirement to change an attributes display to 'READ-ONLY' on a specific condition during CREATE or EDIT operation.
I have written the following lines of code to achiveve the same, but i get an error :-
data : lr_prop TYPE REF TO if_genil_obj_attr_properties.
if cond1 = true.
lr_prop->set_property_by_name( iv_name = 'PROBABILITY' iv_value = if_genil_obj_attr_properties=>read_only ). --> error-line
endif.
Can you please suggest what's gone wrong?
Thanks
DedeepyaBut GET_I* is called before DO_PREPARE_OUTPUT, and the variables in GET_I* are not recognized in DO_PREPARE_**...
Current Code :-
GET_I_PROBABILITY
*CALL METHOD SUPER->GET_I_PROBABILITY
** EXPORTING
** iterator =
* RECEIVING
* RV_DISABLED =.
DATA : lr_btopporth TYPE REF TO cl_crm_bol_entity,
lv_read TYPE crmt_genil_attr_property,
lv_phase TYPE string, lv_process TYPE string,
current TYPE REF TO if_bol_bo_property_access,
property TYPE REF TO cl_crm_bol_entity.
IF iterator IS BOUND.
current = iterator->get_current( ).
ELSE.
current = collection_wrapper->get_current( ).
ENDIF.
IF current->is_property_readonly( 'PROBABILITY' ) = abap_false. "#EC NOTEXT
CALL METHOD current->get_property_as_value
EXPORTING
iv_attr_name = 'CURR_PHASE'
IMPORTING
ev_result = lv_phase.
CALL METHOD property->get_property_modifier
EXPORTING
iv_attr_name = 'PROBABILITY'
RECEIVING
rv_result = lv_read.
ENDIF.
DO_PREPARE_OUTPUT
*CALL METHOD SUPER->DO_PREPARE_OUTPUT
** EXPORTING
** iv_first_time = ABAP_FALSE
DATA : lr_btadminh TYPE REF TO cl_crm_bol_entity,
lv_process TYPE string.
CALL METHOD lr_btadminh->get_property_as_value
EXPORTING
iv_attr_name = 'PROCESS_TYPE'
IMPORTING
ev_result = lv_process.
IF ( lv_process EQ 'ZPPT' AND lv_phase = 'ZA' ) OR ( lv_process EQ 'ZPT2' ).
* lv_read = lr_btopporth->get_property_modifier( 'PROBABILITY' ).
IF lr_prop->get_property_by_name( 'PROBABILITY' ) EQ if_genil_obj_attr_properties=>changeable.
"-- <ZPPT-> Business/Affaire> "-- <ZPT2-> Prospection> "-- <ZA-> Finale>
lr_prop->set_property_by_name( iv_name = 'PROBABILITY' iv_value = if_genil_obj_attr_properties=>read_only ).
ENDIF.
ENDIF. -
Dynamic UI Property Manipulation
Hello,
In DOTNET I used to code in just one line if I had to change the property of some element in the form.
eg. textview.visible = false.
Here in WD, I have still not been able to find out a one line code to change the property of the UI element that I have used in my view.
I do not want to bind it to some attribute in the context. Just simple as DOTNET. Is it possible then please let me know. It would be of great help as I have put a lot of time into it but still have not been able to get through this.
Thanks,
Happy Coding,
RahulLets say you have a button and an event handler for that button. Inside the event handler, you directly manipulate the visibility of part of the UI using coding.
Now you perform the same logic using binding to a context attribute.
Time passes.
Now the requirements have changed and you need to hide a different part of the UI under the same conditions. If you used context binding, you need only to reassign the bindings. You don't care where in the coding the context attribute was set. In the other case you have to find the code and you have to change which UI element IDs you are access.
Another example based upon the above. A developer comes in and renames the UI elements (maybe becuase he/she cut and pasted a section of the UI to rearrange it). This changes the UI element IDs and breaks the coding logic for changing the visibilty of the fields. However it doesn't harm the same requirement that is based upon context bindings because the bindings are independent of the UI element ID. -
Web service dynamic client property for Call
Hi, Hope this is the right forum for web service questions. The oracle document (6 Developing JAX-RPC Web Service Clients) on web service client only shows the stub and properties can be set in stub. I would like to use dynamic client. Can Call object have some properties? what are they?
ThanksCan any one please help :-(
-
Dynamic Parent/Child Select List - Parent may have only a single entry
Hello,
I have a parent/child select list implemented using APEX only, ie no AJAX.
The child list always has multiple entries, but the parent may only have a single entry, depending on who is running the application. When the parent has just one entry it can't submit, so the child list remains empty. Also when the parent has multiple entries, the user must select another entry from the parent list to cascade the child list.
I have put a button to fire the branching to same page submit, but this is a little clunky. Is there a way of cascading the child list when the page opens? Preferably without ajax, but if has to be then ok
I've looked for an answer to this but all threads I have followed seem to assume parent to have multiple entries, and that child list requires parent selection, but this not so in my application.
Thanks, JockAnyone?
Even an acknowledgment that this should be obvious to me, or that it is not currently possible would be of assistance.
Thanks,
Jock -
Dynamic href property in cfgrid?
is there a way to make this work? i'm trying to use different href values inside a cfgrid, based on the value returned by the query. for some reason, it always navigates to the second url, "someOtherURL". grid format is html
<cfgrid>
<cfif myQry.myColumn eq 'something'>
<cfgridcolumn href="someURL">
<cfelse>
<cfgridcolumn href="someOtherURL">
</cfif>
</cfgrid>
thanks a lot!Take your if/else logic outside of the cfgrid tag so you can see what you are doing. I solve these sorts of problems like this:
<cfif WhatIHave is WhatIExpect>
output yes
<cfelse>
output no and WhatIExpect and WhatIHave.
If WhatIExpect looks like WhatIHave, check for whitespace. -
How will read the property file on dynamically?
hi,
I developed 2 java files...in both the files i am reading the some content from .property file(Notes.properties)....
I created the jar file call Aix.jar using the following command.
jar -cvf Aix.jar *.class(without specifying the notes.properties file)...
then i executed the java file using the folowing command
java -cp Notes.jar;Aix.jar NotesToolTest
now i am getting following exception:
Exception in thread "main" java.lang.ExceptionInInitializerError
Caused by: java.util.MissingResourceException: Can't find bundle for base name Notes, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(Unknown Source)
at java.util.ResourceBundle.getBundleImpl(Unknown Source)
at java.util.ResourceBundle.getBundle(Unknown Source)
at NotesToolTest.<clinit>(NotesToolTest.java:28)
I got the problem why this happening...because notes.properties is not included in jar file...that's why the above exception is coming.
But my problem is can i run the java file that will take .prooperties file dynamically(if .property is available on the current directory)...
Thanks in advance,,,,
Regards,
Sankarbecause notes.properties is not included in jar file..Wrong. It is simply not available in the classpath.
The solution is either putting the properties file in the classpath of JVM used, or adding the system path to the propertiesfile to the classpath of the JAR.
Maybe you are looking for
-
UC560 - CUE can not reach internet
Hello all, new here, but not new to using Cisco equipment. I am however new to the phone side of Cisco. I'm currently working on an issue with my CUE traffic not routing out to the internet, however I'm feeling rather stumped at the moment and was h
-
Yoga 13 MSIE10 can't type into text fields
New machine Feb 2013 used exclusively in laptop mode. Has been great overall but right out of the box I could not type text into any form fields using Internet Explorer 10. What an intro to Windows 8! Discovered I can type text in notepad, then copy
-
This just started. US Holidays appear on iCloud on the web and are reliably synced to both my iPhone and iPad 2 but not to my iMac. I tried going to System Preferences>iCloud and unchecking the calendar box, then restarting the machine, then re-che
-
Hard core Apple guy, using macs since 86, owned and bought for companies I have worked out hundreds of mac's etc etc BUT! As an English guy living in Italy I constantly frustrated by the country orientated content on iTunes. For example, watched a gr
-
i am using weblogic 8.1 sp3. i am calling a webservice which is exposed via https. So loaded the provided self signed root CA into my local keystore (cacerts). While running my client i am getting the following exception. Do anyone faced this kind pr