RE: Dynamically mapping data to widgets

One quick and dirty solution would be something like this (though not
terribly efficient):
newPanel : Panel;
newPanel = <panelCreatedFromWindowWorkshop>.Clone(deep = TRUE);for childWidget in newPanel.children do
-- check if the childWidget field name matches field name to be
set
if childWidget.name.isEqual(source=<..FieldNameToSet..>,
ignoreCase=TRUE) then
dataWidget : dataField = dataField(childWidget);
if dataWidget.textvalue = NIL then
dataWidget.textvalue = new;
end if;
-- set the textvalue of the childWidget to required
value
dataWidget.textvalue.setvalue('WORKS !');
end if;
end for;
Your problem would have been directly solved if the Forte library class
CompoundField provided a SetDataObject( ) method corresponding to the
GetDataObject( ) method.
According to Forte Help - "The GetDataObject method returns the object
that the compound field is mapped to. If the compound field is not
mapped to an object, this method returns NIL."
Maybe Forte could consider providing this in a future release.
Another option would have been to use the GetFieldByName( ) method on
the newly created panel to get at the child widgets directly.
According to Forte help - "GetFieldByName is designed for use in dynamic
applications. For example, you can use GetFieldByName to retrieve the
names of dynamically created fields for immediate use in dynamic
applications."
This works fine for compile-time named widgets, but I couldn't get it to
work for the newPanel child widgets using the code below, or maybe I am
missing something here.
newPanel : Panel;
newPanel = <panelCreatedFromWindowWorkshop>.Clone(deep = TRUE);newPanel.name.setvalue('newPanel');
newPanel.parent = <aGridField>;
dataWidget : dataField = dataField(newPanel.getFieldByName('age'));
(OR)
dataWidget : dataField =
dataField(<aGridField>.getFieldByName('newPanel.age'));
(OR)
dataWidget : dataField =
dataField(self.window.getFieldByName('newPanel.age'));
In all cases the return value was NIL.
Maybe someone from Forte could shed more light on this.
Hope this helps.
Prashant.
From: Richard Finegan[SMTP:[email protected]]
Reply To: Richard Finegan
Sent: Thursday, August 13, 1998 2:27 PM
To: 'Forte Users Mailing List'
Subject: Dynamically mapping data to widgets
Here's what I'm trying to do:
I have a panel with a bunch of data fields that I've mapped to an
object.
I want to replicate the panel several times to programmatically
populate a
TabFolder (although the TabFolder bit isn't really relevant here, I
think).
But I can't figure out how to get at the mapped data in the replicas
of my
object...
newPanel : Panel;
newPanel = <panelCreatedFromWindowWorkshop>.Clone(deep = TRUE);
panelCreatedFromWindowWorkshop.anAttributeOfObjMappedToPanel =
something;
// tada! "something" appears in a data field of the original panel
newPanel.? = something; // how to do the same thing with the new
panel?
How do I map an object to the replicated panel? I've experimented
with
assigning "Widget.AppData" to a new object, but I can't seem to get it
to
do anything...
Thanks in advance for your help.
Richard Finegan
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/>

Hi Michael,
did you find any solution?
I've the same problem.

Similar Messages

  • Dynamically mapping data to widgets

    Here's what I'm trying to do:
    I have a panel with a bunch of data fields that I've mapped to an object.
    I want to replicate the panel several times to programmatically populate a
    TabFolder (although the TabFolder bit isn't really relevant here, I think).
    But I can't figure out how to get at the mapped data in the replicas of my
    object...
    newPanel : Panel;
    newPanel = <panelCreatedFromWindowWorkshop>.Clone(deep = TRUE);
    panelCreatedFromWindowWorkshop.anAttributeOfObjMappedToPanel = something;
    // tada! "something" appears in a data field of the original panel
    newPanel.? = something; // how to do the same thing with the new panel?
    How do I map an object to the replicated panel? I've experimented with
    assigning "Widget.AppData" to a new object, but I can't seem to get it to
    do anything...
    Thanks in advance for your help.
    Richard Finegan
    To unsubscribe, email '[email protected]' with
    'unsubscribe forte-users' as the body of the message.
    Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/>

    Hi Michael,
    did you find any solution?
    I've the same problem.

  • Question on Dynamic Query Data Source and Form Folders in Oracle Forms 6i

    Hi there -
    I have one interesting requirement in Oracle Forms.
    This is what I wanted to do.
    1. Have a LOV and Go button on Form.
    2. From LOV, I will select a pre-defined custom table and click Go.
    3. Based on the selected custom table, I have to populate the Block (Tabular Format).
    4. User should be able to do update, delete, insert on this block.
    5. User should be able to use the Oracle Form folders functionality (select only necessary column and save views etc. Std folder functionality).
    6. If user selects a different custom table name in the LOV on top, I need to refresh the data from the block based on this new table. Remaining functionality should be as it is (steps 3 to 5).
    You can see here, I am going to have dynamic query data source (Table Name as well as column mapping) on the block. I do not know before hand how many columns the user selected table has!
    This is what I have planned for this so far but I have some major questions before I can move on with this design:
    1. I am going to create a table structure with fixed number of column in form (40 cols assuming that the custom table will not have more that 40 cols). (Kind of limitation but it's okay as of now).
    2. Dynamically populate the block based on the table name selected by the user from LOV. Dynamically change the table column names based on the table selected etc.
    3. Perform insert, update, delete using PL/SQL package.
    So far it looks okay.
    Now my real question is,
    Can user still be able to user "Folders" functionality here? I have never done this kind of development before and I doubt the dynamic column naming, dynamic column data source will really work for "folders"!
    Also, I am not really sure whether user will be able to save these "folder" queries?
    Okay so form experts, can you ppl suggest me if this is really going to work? Are there any better ways to do this?
    Initially I tried to do this in OA Framework but I got stuck at because as per OAF developer guide "I cannot user OAF personalization for dynamic items, regions etc".
    For more info on that thread see this link...
    Re: setUserCustomizable issue!
    Thanks in advance for the help.

    Any suggestion anyone?

  • Dynamic mapping: I have no Class. I want to get database columns into a map

    I want to practice dynamic mapping.
    I don't know the class in development time. I know the attributes only on runtime. Then I create the table, and want to practice OR Mapping to get and set data in this table while all I have is aa map of fields (Strings/int for direct-to-field mappings, Lists, Objects, etc.) - against this new table.
    I have no Class. Neither source nor Class object in hand.
    In Hibernate it is possible and very well documented. It's called "Dynamic Model". I have to get a special Hib session from a session i already have, and it starts to work with Maps and not real classes and objects.
    Here is the command in Hib: sess.getSession(EntityMode.MAP);
    Thanks in advance.
    Doron

    Doron,
    We have been working with dynamic models and byte code weaving for a while now. I took some work I did a few months back now and upgraded it to work with EclipseLink JPA. I have started creating an example within EclipseLink to both illustrate how EclipseLink can be extended to deliver this dynamic mapping and also to start consolidating our existing dynamic support in our SDO and DBWS components into a more general solution that be used out of the box with JPA.
    I have started a wiki page to illustrate how this functionality can be used. Take a look and let me know if this might address your requirements.
    http://wiki.eclipse.org/Eclipselink/Examples/JPA/Dynamic
    Doug

  • Dynamic Recipients Data Source LOST

    BO 4.0
    I am losing my mind.  I have lots of publications, some Crystal reports with Crystal Dynamic Recipients, some WEBI with WEBI Dynamic Recipients.
    For no apparent reason, publications will just lose their dynamic recipient report mapping and start failing.  I know it's not because they are too large.  Today's was only 7 recipients.
    Then when you try to fix it, it always takes multiple tries to get the list of reports to display when selecting WEBI as a Dynamic Recipients data soiurce.  Then when I am finally able to get the list to display and select one, I click OK and never get the 'Use Entire List' box, so the request never registers.  That means there is no report to map personalization to.  This is a MAJOR problem.
    Why do mappings get lost?
    Why does the report list not display?
    Why does the List from the recipients report not display?
    Why is it happening with WEBI but not Crystal?
    Is there a publication service setting that needs to be adjusted?

    Can you check out "ADAPT01718815
    Description:
    When a user promotes or migrates a publication, certain personalized fields (such as specific document names or dynamic recipient information) are not preserved at the destination. This problem occurs in both enterprise recipient and dynamic recipient publications.
    New Behavior:
    The issue is resolved." from BI4.1 SP4 release note if your publication dynamic recipient information is lost after promotion/migration?
    Hope this helps,
    Jin-Chong

  • FDS and Hibernate dynamic mapping

    I am using FDS with hibernate
    (flex.data.assemblers.HibernateAssembler) to transfer data between
    the flex client and my JDBC database. This works really smooth, as
    long as I specify a server-side java class (POJO) in the
    <hibernate-mapping><class name="some.class"> attribute.
    As I dont really need these server-side java classes for
    anything else, I have tried to save some work by using the
    hibernate "dynamic-map" mode (<hibernate-mapping><class
    entity-name="some.entity">). But in this case, FDS does not map
    the result to the corresponding flex ActionScript class with the
    correct RemoteClass alias. The DataService "fill" method returns an
    ArrayCollection of "ManagedObjectProxy" items containing the field
    "$type$=some.entity" instead.
    Does FDS support hibernate dynamic mapping? Is there a
    workaround for this problem?
    Best,
    Per

    Hi Per,
    The Hibernate assembler doesn't currently support the
    dynamic-map mode, so for now you'll need your POJOs.
    Best,
    Seth

  • Dynamic mapping for alv

    Hi All,
    I need to display three tables  using alv.
    i have used one alv component  in my application.
    In my context  i have three nodes ( for three tables )
    when i am trying to map  one node of my component control to  'DATA' of alv component
    its working fine. i am getting the data of one table .
    Now , my problem is for the remainig two tables . how these two nodes are mapped for the same alv 'DATA' attribute of alv component.
    Whether i need to create  two more  alv components or Is there any possible to dynamic mapping ?
    Thanks and Regards,
    sravan.

    Hi Sravan,
    Now , my problem is for the remainig two tables . how these two nodes are mapped for the same alv 'DATA' attribute of alv component
    You cann't map the multiple context nodes to the DATA node of interface controller.You have to declare 3 component usages.
    or
    you want to set the map the dynamically then use this code.
    data:l_ref_interfacecontroller type ref to iwci_salv_wd_table.
    l_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).
    l_ref_interfacecontroller->set_data( lo_node ).

  • Dynamic mapping

    Hi,
    how to make dynamic mapping?
    Is it possible to make mapping at runtime?
    Thanks a lot.
    Regards,
    Jorge Luiz

    Hello,
    Please see these:
    [Dynamic Context Creation, Mapping, and Data Binding|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/6fdae690-0201-0010-a580-d104b459cb44]
    [Web Dynpro ABAP: Dynamic Context Creation, Mapping, and Data Binding|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/201ddd3b-b4ce-2b10-8883-880ae8147f89]
    Regards

  • How to give dynamically mapping in interface

    Hi all,
    I have requirement for this requirement i am thinking various scenarios,
    could please tell me is there any way to we can give source,target data stores and mapping dynamically(execution time) to the interfaces ? if it is possible then i can re use job again and again ?
    please give your solutions for this post
    Thanks,
    Surya.

    Please let me know if I miss the mark here.
    If you are trying to build the 150 interfaces without spending the time to do so manually, use the ODI SDK. Check out David Allan's blog post for examples here https://blogs.oracle.com/warehousebuilder/entry/odi_11g_interface_builder. You can build your interfaces once - without need for dynamic mapping at execution time.
    I'm pretty sure there is no good way in ODI "out of the box" to dynamically map columns at execution time, but I imagine you could use the ODI SDK to write a Java program that does so. Then, use the Open Tools feature in ODI to run the Java program within your ODI processes. I'm not sure the value of this, but I do not have a full understanding of your requirement.
    I hope this helps. Enjoy!
    Michael R.

  • Dynamically Set date not changing in schedule Job

    Hi,
    I have created a report with "Order Date" as one of the parameters on the selection screen. I have created a variant, say 'X' , to set this date parameter dynamiccaly as "Current date - 31 days".
    I have scheduled this program to run in background with the 'X' variant daily at certain time.
    Now, for the day on which I created this job , the Order Date is set to correct date . For ex if I am scheduling the job tdy it will be set to 06/10/08. However, for next day , that is tom this date is not getting changed. i.e Tommorrow again Order date is 06/10/08 but it should have been 07/10/08.
    So basically this dynamically set date is not chaning in the scheduled job.
    Any idea why this is happening and what is the corrective measure for this.
    Thanks!

    There is an INITIALIZATION event in the program.......
    Do the processing your date in that event only....
    for ex....
    select-options: date for order-date.
    INITIALIZATION.
    date-low = sy-datum or wat ever.
    Thanks
    Saurabh

  • List View Bound to XML Map Data

    HI Have a list view that is bound to xml mapped data.  It seems that on connection refresh that new data is not being updated into the SWF.  My Binding is directly onto the cell ranges that are mapped into excel, so on updates the size of the maped table changes/rewrites over the old data.
    When I refresh I am not picking up the newest data in the list view.  Any thoughts on this on how I can fix.
    Regards,
    Mark

    Thank you Ganesh, but I am not on Enterprise edition.  I am successfully bringing in live xml data, however mapping more than one Query result from one xml file is giving my project some problems.  Refreshing a list View I think is causing this issue.  From within my project in design view I can Refresh the data.
    When I publish the file to html/SWF when I refresh other components are refreshing but the list view and one other is not refreshing.....

  • SSRS 2008 R2 - Dynamic header data stays the same when exporting

    Background:
    I have a SSRS 2008 R2 report with a single Tablix.
    The data is grouped by InvoiceID, with each appearing on a separate page.
    I'm displaying some of the detail data in the group header row using Expressions similar to the following:
    ="Invoice # "  & ReportItems!InvoiceID.Value"
    The data referred to by my ReportItems statements are all hidden in the detail row (Advanced Mode, the Hidden Value for the Static Row Group is set to false).
    Problem:
    When I Preview the report in Visual Studio, everything looks as it should - the dynamic header data changes correctly with each group.
    However, whenever I export the results (I've tried all the formats), the header data is the same for every group - its taking the values from the first group and using it in all the groups.
    I've copied the same expressions into my Totals row, and the data is correct when exported; its only happening in my header rows.
    Any help in resolving this is greatly appreciated, thank you.

    Hi Alex,
    According to your description, you have a header with expression contains ReportItems. Now you find it shows incorrect result when exporting to a file. Right?
    In Reporting Services, it has reported some similar issue that the ReportItem returns unexpected result when exporting.  In this scenario, since you just want to show the group name in each page as a header for detail rows. So you can make the
    detail rows group on the Group. Then delete the Group column but still keep the group. After that add a row above detail row (Out side of group) and put in "=Fields!InvoiceID.Value". Now it will show the corresponding Group name
    when you set page break between each group instance. We have tested this case in our local environment. Here are screenshots for your reference:
    Reference:
    SSRS
    field expressions using ReportItem refrences have unexpected results when exporting
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • Data source cannot be created : MAPVIEWER-00011: Error creating a map data

    Hi everyone,
    i am getting an error meaasge while creating datasource
    " Data source cannot be created : MAPVIEWER-00011: Error creating a map data source."
    pls help

    You should assign only one value to jdbc_sid. Try with this
    <map_data_source name="mvdemo"
    jdbc_host="localhost"
    jdbc_sid="orcl"
    jdbc_port="1521"
    jdbc_user="mvdemo"
    jdbc_password="!mvdemo"
    jdbc_mode="thin"
    number_of_mappers="3"
    allow_jdbc_theme_based_foi="false"
    />
    Make sure that oracle sid is 'ORCL'
    Sujnan

  • HT5557 Can I add an interactive map as a widget? So I can zoom in and out of the map pin?

    I would like to add an interactive map as a widget to my ibook photos to show where the photo was taken. Is this possible or will I have to add a cropped image of the map?

    Perhaps this will help:
    iBooks Author: About HTML widget creation
    Regards.

  • Error in Accessing User Mapping Data

    Hi,
    When i tried User Mapping by going to
    "UserAdministration -> UserMapping" , or
    "Personalize" -> "User Mapping"
    it gives the error msg ,
    Problem in accessing user mapping data for selected system.
    Due to this i am not able to create appointments or see the availability status of a user.
    Also, for your information i have Strong Encryption files installed.
    Pls help.
    Thanks in advance..

    Hi venkat,
    You need to change the default value in UME configuration
    System admin -> System Config -> UM Configuration -> Direct Editing
    ume.usermapping.unsecure=TRUE
    Regards
    PS: Please consider rewarding point

Maybe you are looking for

  • Security error accessing ur unable to load wsdl

    HI I am using a webservice(.net webservice) that is on my localhost and using it in flex application that is also on my system. Means both the webservice and flex application are on the same system. But when i gives the reference of the webservice us

  • SSRS print layout support RTL rendering

    Hi. is there a support of printing report with matrix that is set to RTL (LayoutDirection) which displays in ReportViewr control with property RightToLeft set to RightToLeft.Yes in DisplayMode = PrintLayout. the report looks fine in the report viewr

  • No automatic incidental charges for Purchase Order

    Hi All Please help us obtain the solution. We want that there will be no automatic incidental charges for our Purchase Order but only condition type will be displayed. Situation: 1. Info record already exists 2. Already changed the config for OMFI. I

  • File to File using XSLT

    Hi all,       I have a problem in XSLT mapping in interface mapping phase. when giving the input after executing i got the below error Error: Transformer configuration exception occurred when loading XSLT FileXSLT.xsl . Please solve the error .

  • How to insert code?

    My just-finished site will depend on newletters & opt-in subscribers, & I've started with one of those email managers (Campaigner.com). Uploaded my iweb-made Contact Us page locally onto my browser & it still comes out as their html gibberish. Was to