Possible to iterate attributes?

Is it possible to iterate through the attributes of an object? Or is there a
better
solution for what I want to do?
I have a form for displaying a simple object, and am doing a
query-by-example
type search from this. Unfortunately it's easy to get the form full of 'N/A'
strings
and irritating to clear them, so I'd like to suppress them for the search.
I'd like
to do something like this:
for each attribute do
if attribute is a string or textdata then
if attribute value = 'N/A' then
set attribute value = ''
Any ideas?
Thanks
Chris
Chris Moseley at De Data Ltd
[email protected]
http://www.dedata.com.au
All private email to moz1@ihug please
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

IBC
-----Original Message-----
From: Augusto Jun Devegili [SMTP:[email protected]]
Sent: Monday, July 05, 1999 4:19 AM
To: John Pianezze; Chris Moseley
Cc: [email protected]
Subject: RE: possible to iterate attributes?
At FORUM'99 there was a company which was selling a Reflection framework
(for discovering meta information on classes). Unfortunately I can't recall
its name... :-(
This is going to be solved with SynerJ, though ;-)
-----Original Message-----
From: John Pianezze [mailto:[email protected]]
Sent: Segunda-feira, 5 de Julho de 1999 05:59
To: Chris Moseley
Cc: [email protected]
Subject: RE: possible to iterate attributes?
We all wish !!! Smalltalkers can only laugh.
The class is the only unit in forte that supports any kind of
meta-information. In this case, it's minimal: you can get its class type,
and class type supports one method: AllocInstance().
sigh
What people tend to do to get around it is to build classes that represent
methods.
So for example you might have a class called ApplicationService, which
contains an array of ServiceMethod objects, and each method describes some
kind of operation.
You might define a constant in each method class to describe what it does,
like ServiceMethod.TRANSACTION_NAME, where TRANSACTION_NAME is some constant
string.
Then the only way to figure out how to 'call' the method is by brute force:
so you'l have a big-ass
if-then-elseif-then- elseif-then- elseif-then- elseif-then- elseif-then-
elseif-then-
block of code.
sigh
Alas, this is even how Forte's WebEnterprise maps HTML 'functions' to forte
functionality.
It's messy, but it's worth the effort !!
John Pianezze.
Security First Technologies
-----Original Message-----
From: Chris Moseley [SMTP:[email protected]]
Sent: Monday, July 05, 1999 4:18 PM
To: [email protected]
Subject: possible to iterate attributes?
Is it possible to iterate through the attributes of an object? Or is
there a
better
solution for what I want to do?
I have a form for displaying a simple object, and am doing a
query-by-example
type search from this. Unfortunately it's easy to get the form full
of 'N/A'
strings
and irritating to clear them, so I'd like to suppress them for the
search.
I'd like
to do something like this:
for each attribute do
if attribute is a string or textdata then
if attribute value = 'N/A' then
set attribute value = ''
Any ideas?
Thanks
Chris
Chris Moseley at De Data Ltd
[email protected]
http://www.dedata.com.au
All private email to moz1@ihug please
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive
<URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

Similar Messages

  • Is it possible to include attributes from Essbase Cube in HW notifications?

    Hi All,
    I need to include few attributes from Essbase cube and few from db tables in my HW notification. Just wanted to check, is it possible to include attributes from Essbase Cube in HW notifications?

    Hi All,
    I need to include few attributes from Essbase cube and few from db tables in my HW notification. Just wanted to check, is it possible to include attributes from Essbase Cube in HW notifications?

  • Is it possible to update attributes in all tables in a multi entity view

    Hi I have a view based on 4 entities, all of which are a 3 of which are 1 to many relationship with the 4th. The 3 additional entities have 2 or 3 attributes, Id, name, and one entity has a foreign key relating to a different table which I do not care about. The IDs are all updatable in the entity, and none of them are generated from a sequence but are inserted manually, except for the 4th (Master?) which is generated from a sequence.
    I create the view and all the entities are updatable, but in the view when I go to attributes from the other tables, it says updatable never and is grayed out so I cannot change it, even though in the entities tab, it is updatable always.
    So I was wondering if this was possible to do???

    I do not understand really, if it is 2 different tables, it is 2 different primary keys. Why would this even happen? What does it matter if EmployeeID and DepartmentID is both 1??? It just seems that there has to be a simpler way to do this but ok.
    So I go to the AppModule, Java tab and go generate Java class. The original code was
    public ViewObjectImpl getObjektiCRUDView1()
    return (ViewObjectImpl)findViewObject("ObjektiCRUDView1");
    I then copy your code to the best of my limited knowledge and get this
    public ViewObjectImpl getObjektiCRUDView1()
    this.getObjektiCRUDView1().executeEmptyRowSet();
    {Row yourRow = this.getObjektiCRUDView1().createRow();
    this.getObjektiCRUDView1().insertRow(yourRow );
            return (ViewObjectImpl)findViewObject("ObjektiCRUDView1");
    On the first row the getObjektiCRUDView1() is underlined and it says missing method body or declare as abstract.
    I know I did something wrong here but I have no idea what as I am not very good with Java
    Also it is not a jsf page, I create a single jspx page and divided it using the panel splitter so on one side we have an adf table for updating the Objekti database table, and on the other side I have an adf form for updating the Positions table (and later on other tables, I hope to have many forms there)
    Edited by: Dino2dy on Jun 10, 2010 12:02 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Is it possible to add Attribute(column) to entity via Excel addin?

    I can create an entity via the excel addin and update data in it but i cannot add additional columns (attributes)  to it via the excel addin once its created. am i missing something or is it just not possible?

    Winston, is this still an issue?
    Thanks!
    Ed Price, Azure & Power BI Customer Program Manager (Blog,
    Small Basic,
    Wiki Ninjas,
    Wiki)
    Answer an interesting question?
    Create a wiki article about it!
    I worked around it using the excel addin, but the question is to see if its possible to do this in teh MDS web UI, without using excel, as its not very good design to have to jump from the browser based designer to excel and back in order to manage an MDS model.

  • Is it possible to create attribute in Z Class of type any

    Hi Friends,
    I am working on a requirement to fine tune the code. for this i need to store the values retreived from a remote FM call in a global internal table. I am trying to check whether is it possible to create a global attribute of type any. This  would help me to use the same internal table for down processing also. other wise i need to create several gloabl internal tables with the required structures.
    any pointers on this would be very helpful.
    Thanks,
    udaya

    These generic types can only be used for field symbols and import / export parameters of methods and function modules. Here is a thought though: You can create some sort of container in which you can store all kinds of internal tables from your function module.
    1. Create a global type in DDIC, or a local type in your class.
    Code for local type:
    TYPES: BEGIN OF ty_container,
             name        TYPE char30,
             container   TYPE REF TO data,
           END OF ty_container.
    TYPES: tty_container TYPE SORTED TABLE OF ty_container WITH UNIQUE KEY name.
    2. Create a private / protected attribute when using local type or any attribute you like when using a global type (set step 1).
    3. Create a method (let's call it ADD_DATA) which imports the name of the structure the internal table from your FM is based on and the actual internal table. The import parameter for this internal table is typed TABLE (generic).
    4. Coding in method:
      DATA: ls_itab TYPE ty_container.
      DATA: lv_data_ref       TYPE REF TO data.
      FIELD-SYMBOLS: <lt_value> TYPE table.
      CREATE DATA lv_data_ref LIKE ipt_itab.
      ASSIGN lv_data_ref->* TO <lt_value>.
      <lt_value> = ipt_itab[].
      ls_itab-name = itabname.
      ls_itab-container = lv_data_ref.
      INSERT ls_itab INTO TABLE gt_container.
    Now the global attribute gt_container can hold any kind of internal table you add to it. It can be read using the NAME column field.
    Hope this makes any sense to you, if not let me know.
    BTW: Doesn't look like an ABAP Performance and Tuning issue (other forum).

  • Is it possible to hide attributes in an RCDC if a particular value is true?

    You can base the visibility of an attribute in an RCDC off of a boolean attribute by binding it to the my:Visible property:
    <my:Control my:Name="PositionRef" my:TypeName="UocIdentityPicker" my:Caption="Position Reference" my:Description="%SYMBOL_PositionRefDescription_END%"my:Hint="%SYMBOL_PositionRefHint_END%" 
    my:Visible="{Binding Source=object, Path=IsInChris21, Mode=TwoWay}"
    Is it possible to set this using the inverse of the attribute instead? In other words, when it's true, to hide a control instead? 

    The idea is to use this in combination with Autopostback. So user ticks the checkbox and page content dynamically adjusts. It works nicely when you want to show/enable something but not vice-versa. I have a situation where I would like to hide/disable certain
    fields if user ticks the checkbox that he will provide no info. Negation is required. 
    It's about interactivity. Sounds like a simple problem, only that it seems that by design there is no solution to it.

  • Is is possible to iterate a LinkedHashMap backwards?

    How may i iterate a LinkedHashMap in reverse?
    thx

    user4199244 wrote:
    Is there any specific reason why one can't do this? I mean, it does make sense to be able to do so?!It's quite possible that the linked list in the LinkedHashMap is a single-linked list, in which case iteration in reverse order isn't possible (except with the caveat added before).
    I don't know for sure, however.
    Another reason would be that they didn't want to complicate the interface too much by adding LinkedHashMap-specific methods.

  • What are the possible Ant/wlpackage attributes?

    Basically I want to exclude the static directories (images, css, etc.) from the
    ear file. I can't find anything in the documentation that lists the possible attributes
    from wlpackage (or wlcompile, wldeploy, etc.). Is there a reference for these
    utilities somewhere?
    I realize I can copy the entire app to a temp directory (minus the static stuff),
    then package it from there, I'm just wondering if there is a simpler way.
    thx for your help,
    Matt

    So it sounds like you are saying that wlpackage doesn't work for you?
    Can you provide some details on what we can do to improve it?
    -- Rob
    Matt Savino wrote:
    Thanks Deepak, I guess I'll have to add another copy step, no big deal. It would
    be nice if there is some kind of API or reference for the ANT/wl... tools somewhere.
    That first link really didn't have anything about wlpackage.
    "Deepak Vohra" <[email protected]> wrote:
    toFile, srcDir, destDir, toDir
    "Matt Savino" <[email protected]> wrote:
    Basically I want to exclude the static directories (images, css, etc.)
    from the
    ear file. I can't find anything in the documentation that lists thepossible
    attributes
    from wlpackage (or wlcompile, wldeploy, etc.). Is there a referencefor
    these
    utilities somewhere?
    I realize I can copy the entire app to a temp directory (minus the static
    stuff),
    then package it from there, I'm just wondering if there is a simpler
    way.
    thx for your help,
    Matt

  • Is it possible to change attributes data in role or resource task?

    Hi!
    we have requirement to change some data after user generate role or resource request. I mean when the approver is looking at request details is it possible to change some data? for example account name in case of resource request?
    Best
    mp

    Which OIM version are you using ?
    If 10g then you can set Object permissions for Form
    If OIM 11g, Not possible in current release. You can achieve in some other way.
    Workaround:
    You have a field say "ROLE" on Request Dataset
    End User will select value for ROLE while raising request.
    Create one more field say "APPROVER ROLE". It would be "approver-only" field (It is a property in Request Dataset"
    If approver wants to change some data then he'll select some value in "APPROVER ROLE" field.
    In you approval workflow you can handle if "APPROVER ROLE" is not NULL then use this field else use ROLE field.
    It is just a wrokaround.

  • Overriding attributes in ABAP objects

    Hello,
    I currently want know if it is possible to override attributes in ABAP objects. i know it is possible with methods. I have extend a previous class functionality and want to change the refrence type of an attribute from the parent class, but only on the child. Is this possible in ABAP object or even in normal object oriented techniques.
    Thanks
    Brendan

    Hi,
    ususally you can achive this with other technics. You can e.g. use the class hierarchy for this:
    The attribute is of type REF_SUPERCLASS. Within the superclass it should be working when you set subclasses of REF_SUPERCLASS as attribute.
    Another way is to use interfaces as reference type for your attribute.
    Please refer to [ABAP Objects|http://help.sap.com/saphelp_nw70/helpdata/EN/ce/b518b6513611d194a50000e8353423/frameset.htm]. Especially the chapters about Inheritance and Interfaces.
    Regards Rudi

  • Making attributes of field dynamic in dialog program in layout editor.

    hi,
    to make a field required or possible or hidden, we define its attributes in attributes in layout editor.
    is it possible to make attributes of fields that we define in layout editor dynamic ?
    if functional people want to make some field non-mandatory or mandatory then they go in configuration, and do it. so does this mean that the attributes of the fields that we define in layout editor during dialog program can be made dynamic.
    how is this possible ? because attributes are selected using dropdown, its not a code ?
    please help in solving this mystery...

    Screen Modifications --
    <u>demo_dynpro_modify_simple
    demo_dynpro_modify_screen</u>
    <b><u>Please dont forget to reward points</u></b>
    Sudheer

  • Query to read more than one aggregate at same time - is it possible?

    Hi,
    We have 2 aggregates set up. One contains data for 2007, the other for 2006. These are restricted by setting fixed values for 0CALYEAR.
    When running a query for a single year the correct aggregate is picked up depending on which year is input.
    When running the query for a range which spans both years then no aggreagate is picked up and the cube is then read.
    Is there a system setting somewhere (RSADMIN table possibly?) which allows for multiple aggregates to be used when query is executed?
    Your help would be greatly appreciated.
    Thanks,
    Steve

    Hi Rodolphe,
    Thanks for the answer.
    Unfortunately we have too many queries against the cube in question to have to create and utilise restricted key figures per year.
    I'm looking for a quick fix solution here if it exists - i.e. a parameter setting possibly.
    I of course always use RSRT when testing the use of aggregates.
    When I enter the range of years I get the following message:
    Not possible because -
    '____Characteristic/attribute 0CALYEAR does not have aggregation level */%'
    This is displayed against both the aggregates for 2006 and 2007.
    When using only one year then it correctly finds the aggregate for that year.
    Thanks,
    Steve

  • How to access Selection Attribute Filter Key on a TG through CRMD_MKTTG* ??

    Hello,
    We need to apply all the attributes filters on a TG (for instance city filter) for searching an address  that comply with the filters.
    To create a segment at CRMD_MKTSEG transaction for using it later in a campaign, it could be done by 3 ways:
    1. Create a simple profile
    2. Create a target group: create a profile and build the targe group
    3. Create a profile set: create a profile and build for profile set
    When creating first the profile, it is possible to apply attributes filters. This atributes filters are stored in BD tables of marketing. We are able to find the filters for the first and third case, but not for second case.
    I proceed to explain the first and third case:
    CRMD_MKTTG_TG_H: CRM Marketing: Target Group Header Data
         GUID: CRM Marketing: GUID of Target Group (this data I know beforehand)
         SET_H_GUID: CRM Marketing: GUID Profile Set
         SET_GUID: CRM Marketing: GUID Profile Set
         PROF_GUID: CRM Marketing: GUID of a Profile
    For the first case directly we do a select on CRMD_MKTTG_PF_S where  PF_GUID = CRMD_MKTTG_TG_H-PROF_GUID:
    CRMD_MKTTG_PF_S: CRM Marketing: Selection Criterion of a Profile
         GUID:CRM Marketing: GUID for a Target Group Selection Criterion
         PF_GUID: CRM Marketing: GUID of a Profile
    For the third case we do select on CRMD_MKTTG_PF_H where SET_GUID = CRMD_MKTTG_TG_H-SET_H_GUID and we retive GUID:
    CRMD_MKTTG_PF_H: CRM Marketing: Profile
    GUID: CRM Marketing: GUID of a Profile
    SET_GUID     :CRM Marketing: GUID Profile Set
    Then  we do select select on CRMD_MKTTG_PF_S where  PF_GUID = CRMD_MKTTG_PF_H-GUID.
    And we can obtain the filters through:
    .INCLUDE     CRMT_MKTTG_PF_S_RANGE:CRM Marketing: Selection Range
    SEL_SIGN: CRM Marketing: Component SIGN for Selection Criterion
    SEL_OPTION: CRM Marketing: Component "OPTION" for Selection Criterion
    SEL_LOW     : CRM Marketing: Component "LOW" for Selection Criterion
    SEL_HIGH     :CRM Marketing: Component "HIGH" for Selection Criterion
    But what about the second case that correspond to CRMD_MKTTG_TG_H-SET_GUID?
    Could somebody explain how to access the filters when the second case happen? ¿What relationship MKT tables is based on?
    I would appreciate any suggestion.
    Best regards,
    Rosa
    Edited by: Carlos de Cozar on Feb 15, 2008 12:13 PM
    Edited by: Rosa on Feb 20, 2008 9:42 AM

    Can you please let me know how I can find out the duplicate record.
    you need to split the records from flat file structure into your internal table ans use a delete ADJACENT duplicates comparing fields
    split flat_str into wa_f1 wa_f2 wa_f2 at tab_space.

  • Enhance the structure of marketing attributes in the WebUI

    Hi,
    I want to enhance two attributes u201Ecreated_byu201C and u201Ecreated_atu201C in the assignment block u201Cmarketing attributesu201D. This data are in the component = BP_DATA and in the view = MarketingAttributesEOVP.
    When I take the CRM Tx BSP_WD_CMPWB or when I use the Application Enhancement Tool in CRM 2007, I canu2019t choose the attributes u201Ecreated_byu201C and u201Ecreated_atu201C in the view MarketingAttributesEOVP, component BP_DATA.
    Note:
    The attributes u201Ecreated_byu201C and u201Ecreated_atu201C sill exist on a other place. You can find this attributes in the MARKETINGPRO profile, when you create an external list. Itu2019s the component: ELMOE, view: VEGeneralData, attributes: STRUCT.CREATED_BY_TEXT, STRUCT.DATE_CREATED_ON
    I tried two things:
    1.
    I started the Application Enhancement Tool in the WebUI (CRM 2007) and selected the desired area. Then I was in the configuration mode. There I wanted to use the function u201CCreate New Fieldu201D, but it didnu2019t work, because this function is inactive.
    2.
    I used the CRM Tx SE11, data type: CRMT_MKTBP_ATTRIBUTE. In this structure I want to enhance the two attributes. So, I create an append-structure, but I canu2019t enhanced it.
    The problem is that the structure CRMT_MKTBP_ATTRIBUTE has the category u201Ccannot be enhancedu201D (menu u201CExtrasu201D, u201CEnhancement Categoryu201D  à u201Ccannot be enhancedu201D). You canu2019t change this.
    This two trials wasnu2019t successful. So, I think it is not possible, to add attributes to this structure. It this correct?
    Or has anybody a solution? Is there an option to enhance attributes u201Ecreated_byu201C and u201Ecreated_atu201C?
    Thank you in advance!
    Best regards, Jasmin

    >
    neelambari naik wrote:
    > Try using package in select query.
    How would that help??

  • How to add attributes in Cost Objects via Data Bridge?

    Hi everyone,
    I need your help. I want to know if is possible to add attributes via Data Bridge in Cost Objects tables like the country or address of a customer?
    Thanks for all.
    Sincerely,
    Pedro Sousa

    Hi,
    Jef is right you need to use the different values in the "Attribute Flag" field for creating attribute hierarchy using data bridge.
    For attribute Hierarchy you need to use option 12 & 15 depending on your requirement.
    12  - Attribute Assignment  - Used for assigning attribute to a member of the main hierarchy
    15  - Attribute Hierarchy only - used for creating hierarchy within attribute hierarchy.
    As mentioned by Jef for details you can refer the Data bridge user guide section 4.3.
    Regards,
    Niraj

Maybe you are looking for