Currency attribute of entity

Hi,
Is there any way to get the currency attribute of an Entity (defined in HFM) in HFR?
Thanks,
appu

You can use the text function HFMCurrency which has the following syntax
<<HFMCurrency("GridName", Row, Col, Page)>>
For example: <<HFMCurrency("Grid1",21,B,1)>> displays the currency property for the cell that is in row 21, column B on page 1 of Grid1.
You can even display $ sign if the currency is USD. In order to do this you will need to modify fr_repserver.properties file.
hope this helps

Similar Messages

  • Validation of attribute in Entity Object with List Rule Type

    hi all
    I have an entity "currncy" and I want to make
    a validation in entity level on its attribute "Isdefaultcurrency"
    which is boolean.
    Entity Object : Currency
    attributes :
    1. Currencyid DBsequence
    2. Currencyname String
    3. Isdefaultcurrency, Boolean, CheckBox
    Rule Type : List
    Operator : In
    List Type : Query Result 'select ISDEFAULTCURRENCY from currency where ISDEFAULTCURRENCY=1'
    I want when user insert in table, validation checks the attribute 'Isdefaultcurrency'
    was true then show the error message that there was default currency and if you
    want to set it to true (or default) you must change another record that was true
    and uncheck it then back to current record and will make it true and
    there is one record in my table that its attribute 'Isdefaultcurrency' must be true
    this validation that I used , it does not work correctly and it allows to enter 2 records with
    true value for Isdefaultcurrency. In fact I want when User Enter the First record and
    set the Isdefaultcurrency to true then enter the second record and set the Isdefaultcurrency
    to true the error message will be shown.
    pleas explain it
    Edited by: Marzieh on Jan 30, 2012 9:43 PM

    Is it that you want to only allow one record in the table to have isdefaultcurrency='1'?
    yes , that is correct . I used Oracle DataBase .
    DECODE(isdefaultcurrency, 1, 1, null) please explain about it.
    isdefaultcurrency attribute has boolean Type with 0 or 1 values.
    I would like to show an error if check box was checked for the second time. The idea is that just
    one check box should be checked.
    thanks for your answer

  • Changing the default currency of an entity after it has data stored

    We would like to setup some new entities that are not incorporated for our Actuals collection yet and submit data to our Forecast scenario for them. The issue is the entities currency may change by the time it is incorporated at which point we would need to change the currency previously defined in the metadata for the entity. Will this have any adverse affects on the application other than the fact that the data currently in the system for the entity will not be relevant and would need to be cleared or overwritten with updated data in the new currency of the entity?

    The data and journals will actually remain in the database, but will be unavailable to you. This is why I used the term "orphaned" in my earlier reply.
    Yes, I suggest first removing the data and journals prior to making the currency change.
    Yes, process management will re-set to Not Started, and the Calc Status will also be No Data. You may still see calc status and process management levels in those other currencies, but you cannot change them. That is, if you changed the currency from GBP to EUR, you will see see a calc status in GBP rather than NoData as you would see in any other unrelated currency.
    Ideally, you would completely delete the entity in metadata, and then load it as a new entity with the new currency. This would be difficult to do if this entity is an Intercompany Partner for another entity. If it is not an ICP for anyone else, I would just delete the entity, and then add it back with the new currency.
    --Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Transient Attributes in Entity object vs View Object

    Hi Everyone,
    I need some suggestion with my project. I have a vendors table based on which I created an entity object (columns: vendor_id, contract_id, so on ) but I want to display vendor_name in UI which can be read from other table. I thought of using a transient attribute to populate this vendor_name.
    It is working fine when I create a new record (where I handled this in LOV return value of vendor_id field and it return vendor_id, vendor_name values) but when there is edit/view of page, this vendor_name is null which means I need to populate it during page load /refresh time. Can someone suggest me a better way to populate this transient attributes. I also want to know when should I use transient attributes in Entity object (I saw most of the developer using VO transient attributes in these kind of situation)
    Thanks,
    Ravi

    Hi,
    also want to know when should I use transient attributes in Entity object (I saw most of the developer using VO transient attributes in these kind of situation)
    transient values in entities are saved in the entity cache and thus can be changed in the UI. If you use transient attributes on the VO then these are read-only. All transient attribute however need to be populated upon page load, which you can do in a ViewRowImpl class that checks for a null value when the getter is called to then call a setter, or by using Groovy script as a default value (just set the attribute to script)
    Frank

  • Change mandatory attribute in Entity Service

    I have an Entity Service E with attributes A and B as mandatory attributes. I changed attribute B and made it non-mandatory and deployed. But the backend table in the database doesn't change and it still has B as NOT NULL attribute. Any attempt to create a new value results in an error from database saying cannot assign NULL to NOT NULL attribute.
    Don't want to change the database manually. Is there any way to make the change in the database without dropping the column or the table?

    Hi Vivek,
    1st Take a Value_Node(say “CustomerDetails”) in the WebDynpro context with the attributes(Say “CustNumber”,” CustName”and “CustType”)  that your Caf_Entity_Service Say “Customer” with attributes “CustNo”,”CustName” and “CustType”)  have .Then Bind the Value_Node into the View(By using “Apply Template” =>”Table”=>Choose the Value_Node then Next Choose ”Input Field” Editor).
    Now Inside the Action of the “NewLine” Button put use This.
    wdThis.wdGet<Name Of Your Component>Controller().createCustomerDetails();
    Now Take an button say “SAVE” and inside the action of “SAVE” button use this Code.
    wdContext.nodeACustomer().invalidate();
    for(int i = 0;i<wdContext.nodeCustomerDetails().size();i++)
    String cnum =  wdContext.nodeCustomerDetails().getCustomerDetailsElementAt(i).getCustNumber();
    String cname = wdContext.nodeCustomerDetails().getCustomerDetailsElementAt(i).getCustName();
    String ctype = wdContext.nodeCustomerDetails().getCustomerDetailsElementAt(i).getCustType();
    try
    ACustomer custM = CustomerServiceProxy.create(); //create a new dummy record in caf model with local guid  
    custM.setCustNo(cnum);
    custM.setCustName(cname);
    custM.setCustType(ctype);
    custM.getAspect().sendChanges();//populate the dummy record with custom fields and with valid system fields also.
    IServiceFacade serviceFacadeProdConf = CAFServiceFactory.getServiceFacade(<Your Caf Model Name>Definition.class)
    serviceFacadeProdConf.save();
    catch(Exception e)
    wdComponentAPI.getMessageManager().reportException("CAN'T CREATE NEW RECORD WITH CUSTOMER ID : "+cnum ,false);
    }// end of for loop
    Regards,
    Mithu

  • Jdev aborts when removing attribute from entity object

    Hi,
    after synchronizing my data model with my database scheme, jdeveloper 10g gave me the correct message, that there had been 1 attribute left in an entity object, that does no longer exist in the database.
    When removing the attribute from the entity object, jdev 10g aborts (first click: nothing happens, second click: abort).
    regards
    Klaus

    Thanks for bug report. This bug has been logged (3151203) and has been fixed in more recent builds.
    Ray

  • Object attribute for Entity Bean?

    Can I have an Object type attribute in an Entity Bean that must be mapped to a database. This Object will then only contain text attributes. For example,
    class UserBean {
    String name;
    Address address;
    class Address {
    String street;
    String streetnumber;
    In other words: Can I use EJB's to provide the same facility that an Object-Oriented Database provides?

    Providing you are not worried about referential integrity, CMP will do this automatically.

  • Creating record from backing bean, but VO not pass an attribute to entity

    JDev 11.1.1.6
    I have a strange case. I have a code like the following:
    DCIteratorBinding taskIter = dcbc.findIteratorBinding("TaskVO1Iterator");
    RowSetIterator taskRsi = taskIter.getRowSetIterator();
    Row[] taskTemplateRows = taskTemplateIter.getAllRowsInRange();
    for (Row taskTemplateRow : taskTemplateRows) {
    Row taskRow = taskRsi.createRow();
    taskRow.setAttribute("PhaseId", phId);
    System.out.println("Value after set: " + taskRow.getAttribute("PhaseId"));
    taskRow.setAttribute("TaskName", taskTemplateRow.getAttribute("TaskName"));
    try {
    dcbc.getDataControl().commitTransaction();
    } catch (Exception e) {
    taskCreated = false;
    e.printStackTrace();
    dcbc.getDataControl().rollbackTransaction();
    The output from debug:
    Value after set: 107
    Commit failed with the following error
    oracle.jbo.AttrValException: JBO-27014: Attribute PhaseId in TaskEO is required
    I debug the code, the phId has a value (in the debug is 107), but some how the entity object doesn't think there is a value being set or not passed by the VO to the EO.
    Any idea what could cause this?
    Thanks.

    I have one comment in your code, you are creating a new Row object, but do not insert it into the Row Set.
    try this code, but I am not sure if it will solve your problem
    DCIteratorBinding taskIter = dcbc.findIteratorBinding("TaskVO1Iterator");
    RowSetIterator taskRsi = taskIter.getRowSetIterator();
    Row[] taskTemplateRows = taskTemplateIter.getAllRowsInRange();
    for (Row taskTemplateRow : taskTemplateRows) {
    Row taskRow = taskRsi.createRow();
    *taskRsi.insertRow(taskRow);*
    taskRow.setAttribute("PhaseId", phId);
    System.out.println("Value after set: " + taskRow.getAttribute("PhaseId"));
    taskRow.setAttribute("TaskName", taskTemplateRow.getAttribute("TaskName"));
    try {
    dcbc.getDataControl().commitTransaction();
    } catch (Exception e) {
    taskCreated = false;
    e.printStackTrace();
    dcbc.getDataControl().rollbackTransaction();
    }

  • Inconsistent Rounding of Currency Attributes in Screen Labels in 10.2

    Hi all,
    I'm seeing some interesting rounding behaviour on screen labels in v10.2:
    Value -> Displayed
    $100.505 -> $100.50 [Incorrect]
    $100.515 -> $100.52 [Correct]
    $100.525 -> $100.52 [Incorrect]
    $100.535 -> $100.54 [Correct]
    $100.545 -> $100.54 [Incorrect]
    $100.545001 -> $100.55 [Correct]
    ... and so on. There is an easy workaround (the Round function) but I'm curious to know of there is an OPA lesson I'm missing here. Thoughts?
    Thanks,
    - Patrick

    Keep in mind that if 100.505 is being entered by a user into a Number field, it is only represented as an approximation of that value in binary form. What you're probably seeing is that the actual binary representation is equivalent to 100.5049999 - which when rounded gets converted to 100.50.
    OPA takes care of this for you when doing comparisons (e.g. a rule that says the value >= 100.505 will work, even if the value = 100.505). But when rounding an existing value for display, OPA can't help with that.

  • Logical Model - Entity Attribute?

    Hi ,
    Thanks in responding to my posting.
    I am using SQL DM 3.0.0.665. I need your thoughs on following.
    1) Do we able to select multiple entities for entity reporting? I find an option for all entities then it ask us to pick only one entity to report.
    2) Are we able to build a report for all entities in a subview?
    3) I see Formula (Default Value), Preferred Abbreviation and Synonyms for each attribute in Entity Details report. I am not able to find a place to fill those in attribute definitions. Where can we supply those details, so it could print in reports?
    Thanks in helping us out.

    I find the following for Attribute Properties in SQL DM Help
    =============
    Attribute Properties
    This dialog box displays the properties of an attribute, which is a component of an entity in the Logical Model.
    General
    Name: Name of the attribute.
    Synonym: Synonym for the attribute.
    Preferred Abbreviation: Name that will be used for any corresponding table column during forward-engineering if the Use Preferred Abbreviations option is enabled in the Engineering dialog box.
    Long Name: Long name in the format: entity-name.attribute-name.
    Allow Nulls: Controls whether null values are allowed for the attribute. If this option is enabled, a non-null value is mandatory.
    Datatype: Enables you to specify a domain, logical type, distinct type, collection type, or structured type as the data type of the attribute. You can click the ellipsis (...) button to specify further details for the selected type.
    Entity: Name of the entity with which the attribute is associated.
    Source Name: User-specified name of the source for this attribute.
    Source Type: Manual, System, Derived, or Aggregate.
    Formula Description: For a derived or aggregate source type, the formula for the attribute.
    Scope: For a structured type with Reference enabled, limits the scope by specifying the table in which the type is implemented.
    Type Substitution: For a structured type with Reference disabled, or for a structured type applied to an entity, controls whether a substitutional structured type is generated in the DDL.
    Default and Constraint
    Constraint Name: Name of the constraint.
    Default Value: Default value for the attribute.
    Use Domain Constraints: Controls whether the properties defined in Domains Administration for the associated domain are used. If this option is disabled, you can use the remaining fields to specify the database type for the constraint and the ranges or a list of values.
    Constraint: Enables you to specify a constraint for one or more types of databases.
    Ranges: Enables you to specify one or more value ranges for the attribute.
    Value List: Enables you to specify a list of valid values for the attribute.
    Permitted Subtypes
    For a structured data type, lists all subtypes for the attribute, and lets you specify whether each is permitted for the attribute.
    =============
    but most of the above are not showing up in attribute definition window. How do we see those?

  • Entity Currency Adj, Parent Currency adj for Parent-child with same currenc

    Hi,
    In 11.1.2.1 I noticed that if parent and base entity currencies are same, entity currency and entity currency adjustments equal parent currency and parent currency adjustments respectively. If the currencies are different, the entity currency total gets translated to parent currency and post that, we can pass adjustments at PCA level.
    I had an understanding that Entity Currency total always rolls upto Parent currency irrespective of whether the currencies of base and parent are same/different.
    Is this something new with version 11 or has it always been like this?
    Thanks,
    S

    I don't follow your explanation. To be very clear: <Parent Curr Adjs> is NOT the translation of <Entity Curr Adjs>. This will never happen. HFM takes <Entity Curr Total> and translates that into the target currency. The only time <Parent Curr Adjs> will equal <Entity Curr Adjs> is when they are indeed the very same currency. In that case there is no translation but instead two names for the same data set.
    --Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • How to block Entity Currency and make only ENtity Currency Adj available?

    Hi,
    I have some P&L accounts which need to be blocked for Entity currency but have a calculation in rules. These accounts still need to be available for journals. I have ensured that the Is Calculated is 'N'. Then I ve set up formulas for the accounts. Also I ve ensured that the accounts are non input for Entity Currency. The entity currency calculations are happening fine. I can even post journals but when I run a consolidation, the amount in ENtity Currency Adj dissapears.
    Thiis is the Sub routine for No input. I guess I'll need to add a HS.Clear for these accounts as well
    Sub PANDLNOINPUT()
         Dim sAccount, aAccountList
         aAccountList = HS.Account.List ("PANDLV2","[Base]")
         For Each sAccount In aAccountList
              HS.NoInput "A#" & sAccount & ".V#<Entity Currency>"
         Next
    End Sub
    Also for the calculation of teh P and L accounts, I have the following rules
    Calculate Cash Flow
    '=================================================================================================================
    Sub CalcCPandLFlow(sPOVScenario)
         Dim nVal
         Dim aCustom1List, sCustom1, aCustom4List, sCustom4
         Dim sPriorScenario
         aCustom1List = HS.Custom1.List("", "C1_AllBaseXNone")
         aCustom4List = HS.Custom4.List("", "C4_AllBaseXNone")
         sPriorScenario = GetPriorScenario(sPOVScenario)
         For Each sCustom1 In aCustom1List
              For Each sCustom4 In aCustom4List
                   'Operating Profit
                   nVal = HS.GetCell("A#B20201.C1#" & sCustom1 & ".C4#" & sCustom4 & ALL_TOPXC1XC4)
                   Call SetValPL("A#P20201.C1#" & sCustom1 & ".C4#" & sCustom4, nVal)
    Finally the sub routine for calculation is
    Sub SetValPL(sCFAccount, nVal)
              If nVal <> 0 Then
              Call HS.SetDataWithPOV(sCFAccount & ALL_NONEXC1XC4, nVal, False)
         Else
              Call HS.Clear(sCFAccount & ALL_NONEXC1XC4)
         End If
    Please help me as we are in year end. Need help desperately
    End Sub

    The clear action takes place within Sub SetValPL, but you are not limiting its exectution in the value dimension. As a result, the clear is being executed in every value member in which Sub Calculate runs. You must add a condition to allow it to only run when the point of view value member is not Entity Cur Adjs, or whenever you want it to. Generally speaking every rule in your file should at least have a value dimension condition with you determining when it should or should not execute.
    --Chris                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How can I use database constraints in entity attribute validation rules

    I am interested in using database constraints to validate attributes in entity objects.
    I would like to implement a JboValidatorInterface in a way that I can use an operator like "GreaterOrEqualTo" to compare with values retrieved from the database for a column associated with an entity object attribute.
    I have used this pattern with success in other environments, where the user community decides the minimum value for a thing should change from x to y, and simply changing a database object also changes the validation methods of all applications which access it.
    I am not certain that column constraints are the appropriate vehicle, but so far that seems to be the case.
    I see that you can create a validation rule which makes comparisons against a view object attribute. I am wondering if there is a generic way to use standardized names for column constraints along with ADF hooks into properties of database columns, to avoid writing individual queries for each attribute.
    Thanks in advance!!!

    Jeffrey,
    If you already have constraints on the underlying tables, why do you need to validate them in ADF BC? You can certainly use some framework extension classes to give the user nicely formatted error messages - see ER: ADF BC - allow custom error msgs for common exceptions (e.g. DML) for more details.
    I am using this method so that anything that is enforced in the database (check constraints, foreign keys, unique constraints, etc) are not enforced in the ADF BC layer as well - after all, there's more than one way to get data into a table, and DB constraints ensure that even if data gets in through another mechanism (apart from the ADF application), it is valid. My 2 cents, of course.
    Hope this helps,
    John

  • How to use Entity Attributes in excel Rule File

    Hello,
    I have defined two entities Entity A with two attributes and Entity B child of A with two attributes.
    I needed to have many instances of theses objects thats why i have chosen entities.
    I need to calculate for each entity a result depending on the values of the attributes filled by the user.
    My final goal is to have the sum of these calculated results.
    The issue i am facing is whenever i try to define a rule in Excel, OPM considers the attribute as global (and creates it) and not as entity level. I therefore have duplicate error.
    How can i tell Excel/OPM that the attribute is entity level ?
    Thank you.

    Make sure you are using exactly the same attribute text in Excel and in your properties file. You can also use the legend key to map from the attribute text to a shorter form.
    There isn't any magic here! If the text is the same it will match.
    If you provide the actual text of the attributes and entities you are using, we might notice something else.
    Davin.

  • Changing the name and currency of a parent entity.

    Hello Experts,
    Just looking to confirm the impacts of changing a parent entity name as well as the default currency. I am assuming since it is not a base entity I will just need to reconsolidate all historical years across all scenarios and unpost and update any PCA journals as well as any report, dataform, grid changes and if the entity is mentioned in the rules. Updating metadata child parent association. Are there any other items I am not considering such as Process Management, etc...?

    Hi,
    changing the reporting currency has realy quite an impact. So the biggest recommendation would always be to use a test-system first :-)
    I think, that you mentioned most of the items.
    - yes, reconsolidate, because all [Parent], [Proportion], [Elim], [Contrib] items will be los
    - all journals on other elements than <Entity Curr Adjs> --> thats important! Even if you change back the currency to the original one will not enable the journals again!
    - P-Mgmt --> if you change the reporting currency of an entity, you cannot change the P-Management if it is different than "not started". So you should reject all periods, where the P-Management of that entity was started. (there, if you miss one, you can load MD with the old currency and it will work again).
    - please also consider if you have somewhere historic rates which you might need to adjust as well.
    good luck!

Maybe you are looking for