Mapping a property to a Studio Database Field

Can anyone tell me how I can map one of our user properties to a studio database field. We would like for the record browser portlet to show the user's "Employment Level" without having the user enter that info in the form. Thanks.

Unfortunately, this isn't really supported with Studio. The only thing you might try is doing some type of database level hack -- either via a synchronization or trigger.
...stephan

Similar Messages

  • Mapping an object's property to a field computed from 2 database fields

    Hi,
    Is there a way to do a WorkBench mapping of a business object's property to a field computed from 2 separate database fields?
    If not in WB, how would you do that?
    Thanks,
    Michal

    You could define this mapping through a TransformationMapping using you own code in the mappings transformer to divide the values. However you are probably much better off to just map the two values directly, and add a method in your object model to get the rate buy dividing the values.
    If terms of being able to order-by the calculated value in the a TopLink query, mapping the calculated value using a transformation mapping would not help this.
    To do this order by you can use,
    query.addOrdering(ExpressionMath.multiply(ExpressionMath.divide(builder.get("numberOfSuccess"), builder.get("numberOfAttempts")), 100);

  • Mapping entire XML message to a database table field

    I receive a XML message from a topic. I want to store that entire XML message in database field of XMLType. My components are lined like this.
    JMS Adapter (Consumer) ---> Mediator ---DBAdapter
    My question is how will I use XSL tranformation in this case to put the XML message I receive to the XML type data field. Should I be using any other approach.
    Regarsd
    Thomas

    have a look at this code for reference. Not sure what you mean my map the whole message. It should be such a matter of dragging the route element to the blob object of the DB adapter.
    create or replace PROCEDURE INSERT_INBOUND_MESSAGE (
           p_ID       in out nocopy varchar2
        ,  p_Payload  in out nocopy blob
        ,  p_Date     in date
        ,  p_Error   out varchar2
        ,  p_Status  out varchar2)
    IS
    l_clob        CLOB;
    l_dest_offset NUMBER          := 1;
    l_src_offset  NUMBER          := 1;
    l_amount      INTEGER         := dbms_lob.lobmaxsize;
    l_blob_csid   NUMBER          := dbms_lob.default_csid;
    l_lang_ctx    INTEGER         := dbms_lob.default_lang_ctx;
    l_warning     INTEGER;
    l_length      BINARY_INTEGER;
    l_error_text  VARCHAR2(80);
    BEGIN
      p_Error  := 'SUCCESS';
      p_Status := 'S';
      dbms_lob.createtemporary( lob_loc => l_clob
                              , cache   => TRUE
                              , dur     => dbms_lob.session);
      dbms_lob.converttoclob  ( l_clob
                              , p_Payload
                              , l_amount
                              , l_dest_offset
                              , l_src_offset
                              , l_blob_csid
                              , l_lang_ctx
                              , l_warning);
      Begin
        Insert Into inbound_message values (p_ID, p_Payload, p_Date);
      Exception
        When others Then
          p_Status := 'E';
          p_Error  := SQLERRM;
      End;
    END INSERT_INBOUND_MESSAGE;
    --EXIT

  • Best way to map CLOB database fields?

    I ran into a problem mapping CLOB fields a couple of months ago and couldn't find an easy answer to the problem. I got sidetracked and now find myself back at the same point...
    What is the best practice for mapping CLOB database fields in the mapping workbench? Do you map them as serialized (as a note I've got here) or can someone point me in the proper direction please? I've got everything else functioning properly, but I left my CLOB fields out of my mapping because they were giving me such trouble. Now, I need to get back to that specific area.
    ~ Tiffani

    Hi Tiffani,
    SerializedObjectMapping is generally used to map a multimedia object (for example image)to a BLOB field. For CLOB, I use simple direct-to-field mapping, and TopLink conversion manager will handle the read/write from the object String/Char[] to CLOB.
    King

  • Update of non-database fields mapped to database fields

    I have two columns start month and start year which
    are non-database columns and which map to one database
    field start date in the database.
    I have a post-query trigger on the start month and
    start year fields to derive the value from the
    database field start date when the form is queried.
    When I try to update the form, the update does not
    work - if I remove the post-query trigger then the
    update works but, the month and year non-database
    fields do not get queried.
    Any help will be greatly appreciated.
    Thanks,
    Suzanne

    since those 2 fields are not connected to the database field you need to code the update to the database.
    Use the pre-insert trigger and set the value of the date item according to the values of the 2 fields.

  • How do I map custom property from portal api ptsearchresponse?

    I want to map the search results to my datatable.
    I can execute the search fine. But how do I map the property value? My property id is 101.
    In other words which ptSearchResponse method do I use?
                    IPTSession ptSession;
                    IPTSearchRequest ptSearchRequest;
                    IPTSearchResponse ptSearchResponse;
                    IPTSearchQuery ptSearchQuery;
                    string serverConfigDir = ConfigPathResolver.GetOpenConfigPath();
                    IOKContext configContext = OKConfigFactory.createInstance(serverConfigDir, "portal");
                    PortalObjectsFactory.Init(configContext);
                    ptSession = PortalObjectsFactory.CreateSession();
                    ptSession.Connect(1, "", null);
                    // Create a SearchRequest object
                    ptSearchRequest = ptSession.GetSearchRequest();
                    // Set search settings (constraints)
                    // Set maximum results desired (100)
                    ptSearchRequest.SetSettings(
                    PT_SEARCH_SETTING.PT_SEARCHSETTING_MAXRESULTS, 100);
                    // Set the folder in which to search (array to support multiple folders)
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_DDFOLDERS,
                        new int[] { Convert.ToInt32(ConfigurationManager.AppSettings["DocumentFolderId"]) });
                    // Include subfolders of the folder
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_INCLUDE_SUBFOLDERS, true);
                    // Restrict search to just portal documents
                    // (not ALI Collaboration or ALI Publisher)
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_APPS, PT_SEARCH_APPS.PT_SEARCH_APPS_PORTAL);
                    // get documents only
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_OBJTYPES, new int[] { PT_CLASSIDS.PT_CATALOGCARD_ID });
                    // Request the intrinsic PT_PROPERTY_PROVIDERCLSID and custom property 101
                    ptSearchRequest.SetSettings(
                        PT_SEARCH_SETTING.PT_SEARCHSETTING_RET_PROPS,
                        new int[] { PT_INTRINSICS.PT_PROPERTY_PROVIDERCLSID, 101 });
                    //Use IPTFilter to create search filter with clause with two statements
                    IPTFilter ptFilter;
                    IPTPropertyFilterClauses ptFilterClause;
                    IPTPropertyFilterStatement ptFilterStmt1;
                    IPTPropertyFilterStatement ptFilterStmt2;
                    // Create the filter itself
                    ptFilter = PortalObjectsFactory.CreateSearchFilter();
                    // Create the filter clause
                    ptFilterClause = (IPTPropertyFilterClauses)ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_CLAUSES);
                    ptFilterClause.SetOperator(PT_BOOLOPS.PT_BOOLOP_OR);
                    // Attach it to the filter itself
                    ptFilter.SetPropertyFilter(ptFilterClause);
                    // Put two statements into the clause
                    ptFilterStmt1 = (IPTPropertyFilterStatement)
                        ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_STATEMENT);
                    ptFilterStmt1.SetOperand(101);
                    ptFilterStmt1.SetOperator(PT_FILTEROPS.PT_FILTEROP_CONTAINS);
                    ptFilterStmt1.SetValue(tbSearch.Text.Trim());
                    ptFilterClause.AddItem(ptFilterStmt1, ptFilterClause.GetCount());
                    ptFilterStmt2 = (IPTPropertyFilterStatement)
                        ptFilter.GetNewFilterItem(PT_FILTER_ITEM_TYPES.PT_FILTER_ITEM_STATEMENT);
                    ptFilterStmt2.SetOperand(1);
                    ptFilterStmt2.SetOperator(PT_FILTEROPS.PT_FILTEROP_CONTAINS);
                    ptFilterStmt2.SetValue(tbSearch.Text.Trim());
                    ptFilterClause.AddItem(ptFilterStmt2, ptFilterClause.GetCount());
                    // Make the filter into an actual search query
                    ptSearchQuery = ptSearchRequest.CreateAdvancedQuery(ptFilter);
                    // Run the search and return results
                    ptSearchResponse = ptSearchRequest.Search(ptSearchQuery);               
                    // How many things matched the search?
                    int totalMatches = ptSearchResponse.GetTotalMatches();
                    // How many items were returned? (Not necessarily all)
                    int returnedMatches = ptSearchResponse.GetResultsReturned();
                    // create DataTable and map results to
                    // datatable fields
                    DataTable dtSearchResults = new DataTable("Documents");
                    dtSearchResults.Columns.Add("Name");
                    dtSearchResults.Columns.Add("Excerpt");
                    dtSearchResults.Columns.Add("DocSubject");
                    dtSearchResults.Columns.Add("DocTopic");
                    dtSearchResults.Columns.Add("DocType");
                    dtSearchResults.Columns.Add("DocKeywords");
                    dtSearchResults.Columns.Add("Url");
                    dtSearchResults.Columns.Add("ImageURL");
                    DataRow dr;                                                                                                          
                    // Print the name of each result
                    for (int i = 0; i < returnedMatches; i++)
                        dr = dtSearchResults.NewRow();
                        String strName = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTNAME);                  
                        String strText = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTSUMMARY);
                        String strURL = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_DOCUMENTURL);
                        String strImageURL = ptSearchResponse.GetFieldsAsString(i, PT_INTRINSICS.PT_PROPERTY_OBJECTIMAGEUUID);
                        dr["Name"] = strName;
                        dr["Excerpt"] = strText;
                        dr["Url"] = strURL;
                        dr["ImageURL"] = "pt://images/plumtree/portal/public/img/sml" + strImageURL + ".gif";
                        dtSearchResults.Rows.Add(dr);
    Edited by [email protected] at 04/11/2008 7:26 PM
    Edited by [email protected] at 04/11/2008 7:27 PM

    Problem solved. I should use JsonObject instead of JSONObject :D 

  • Database field won't display

    I'm new to Crystal Reports in .NET but I do have my 1st report working except for one field that I'm trying to use in a sub report.  It's in my database fields just like the other field for the sub report.  I can see data for both fields in the Browse Data.  One field and it's heading display just fine but I can't see the other one anywhere.  The field heading that's created when I drag it into the Detail area won't display in the report either.  I've tried deleting the field and readding it but nothing helps.  As far as I know I've done nothing to suppress this field from printing.  I REALLY need to get this working.  Thanks for your help.

    Hello Paul,
    I recommend to post this query to the [.NET Development - Crystal Reports|SAP Crystal Reports, version for Visual Studio; forum.
    That forum is monitored by qualified technicians and you will get a faster response there.
    Also, all Crystal Reports .NET Development queries remain in one place and thus can
    be easily searched in one place.
    Thanks a lot,
    Falk

  • How to read the source file and copy the entire content to the target Database field

    Hi All,
    PI system extracts the actual business content from the incoming attachment file and copy the entire format to the target Database field which is a blob data type field.
    Sender Adapter: SOAP
    Receiver Adapter: JDBC
    JDBC Structure
    Can we achived the above requirement by using UDF with out Java Mapping?
    Thanks,
    Mahi.

    Ok, in this case yo can use the conten converion of the file adapter. Therefore you first need to create a Datatype in ESR with the required structure
    Then in your file adapter you need to use this datatype and its required fields:
    The Datatype then can be used as usual within you mapping.
    regards
    Christian

  • Database Fields Verify Database - By Programaticaly

    Hi to all,
                  I'm using Crystal Report 11.5, Visual studio 2005 - C#,Asp.Net2.0.
                  My task is by programaticaly add the
    Fieldsobjects,Blobobjects and so on. So in design time i just
    add the Datatable in the CR,
    but during runtime i add some columns in database Table and i get that newly added column but unable to add this field
    (Raised error as "Field Not Found") so what i tried is during
    design time in
    Field Explorer>Database Fields>Right Click and Select
    Verify Database after this work my page is working fine.
    My questions is how to do the same work programaticaly.
    Experts please explain.
    Thanks in Advance

    Yes i found the way it's very simple
    ReportDocument boReportDocument = new ReportDocument ();
    boReportDocument.VerifyDatabase();
    Thats all

  • POST-QUERY trigger cannot retrieve the database field in TEMPLATE.fmb

    I have tried to create a form using TEMPLATE.fmb in Oracle Apps R11i. I found that the POST-QUERY trigger cannot retrieve the database field (which is display item property) properly. Can anyone tell me how to retrieve the displayed database fields? Thanks for any helps.

    POST-QUERY would fire after the query has been executed, it does not do the actual data retrieve.
    See if the items you have put have the data source properties set and are not control items.
    btw, this forum is for OA users, you would get better response to your query if you post it in forms forum
    Thanks,
    Tapash

  • How to add a DataBase Field in PLD from a User Defined Table

    Hi All,
    Please tell me how should i add a database field in PLD from User Defined Field...
    The DropDown for tables in the Property window does not shows the User Define tables...How should i see them...
    Thanx in Advance
    Manish

    In PLD choose object Database. Then press Alt + table combobox, this will show the UDT. Then choose the column.

  • Frm-40208 from running in query mode. cannot change database fields

    Hi,
    Could some one help me with this.
    I am calling a form from another form. I am passing the parameter list to the calling form and doing a query by setting the block property. But when queries the message
    FRM-40208 Form running in query mode. cannot change database fields .
    I do not want the message to appear when they go the called form . Please some one could help me how could I avoid displaying the message.
    Regards
    Bain

    Hi,
    Good day! I am working with a module that also calls another form. It uses call_form with query mode parameter set to query_only. My problem is, whenever i call the other form using the call_form, it would display the called module and then as it populates the detail block of the called form, it will display frm-40208 from running in query mode. cannot change database fields per record. What I want is for the message to be displayed only once.
    I have tried capturing the error by using on-error trigger, but it doesn't go to that whenever the other form was being called. I think the message has to do with the post-query trigger, because it passes some values on a dbase block objects.
    Do you have any suggested solutions or workarounds to make the message display only once whenever the other form is being invoked by the call_form?
    I would greatly appreciate any suggestions/ideas.
    Thanks and regards,
    ASantiago

  • Database Field in Aging report PLD

    Hi All,
    I am adding a database field to system's default aging report. the field is a user defined field in oinv table. how should and what field should I link it to? there are three options in property : Link to, relate to and in next segment. I dont see how should I link docentry of current row with the docentry field on report as the docentry field is not visible at all.i was able to drag this user defined field but data that comes is a clear mess. please guide as I will have to create the entire report manually if this is not resolved.
    Thanks a lot in advance,
    Binita

    Thank you for replying.
    Suda,
    I have done the same thing. have extracted the docnum column from the field and have linked  the UDF with the formula field. but the thing I doubt causing the problem is, the report contains data from not just OINV but from JE, RC and other marketing documents and it fails to perform the join operation. any idea? the column does show data in the report  but it shows it of some other invoice document and not the one shown on the row.
    Gordan,
    Even I doubted the same but in that case, it would not have shown the data at first place. it does show but of some other document. there is a join which I am not able to recognize. I want to know how do we usually join the database field. it should not be with the docnum but with the doc entry and I dont know how to get the docentry column to join it as it is no where on the report.
    Please guide.
    Thanks,
    Binita
    Edited by: Binita  Joshi on Jan 21, 2010 7:58 AM

  • Programaticaly add Table in CR database fields

    Hi to all,
               I'm using CR 11.5, Visual Studio 2005-C#,asp.net and SQL server 2005.
               My work is during runtime to add the Fieldobjects in
    crystal report now i can do it but during design time i added
    the Table in Crystal Report ->FieldObjects>Database Fields
    by that programaticaly i can add the Fieldobjects.
    What i try to do is  
    to add the table to CR Database fields by programaticaly.
    Is this possible then experts please help me.
    Thanks in advance

    I found a way like this
    private void AddTableFromDataSet(ref CrystalDecisions.CrystalReports.Engine.ReportDocument rpt, System.Data.DataSet ds)
                ISCDReportClientDocument rasReport = rpt.ReportClientDocument;
                // Convert the DataSet to an ISCRDataset object (something the ISCDReportClientDocument can understand)
                CrystalDecisions.ReportAppServer.DataDefModel.ISCRDataSet rasDS;
                rasDS = CrystalDecisions.ReportAppServer.DataSetConversion.DataSetConverter.Convert(ds);
                // Add the dataset as a data source to the report
                rasReport.DatabaseController.AddDataSource((object)rasDS);
                // Add a field to the report canvas
                // Note: This is quick and dirty. No positioning, resizing, formatting, etc.
                CrystalDecisions.ReportAppServer.Controllers.ISCRResultFieldController rfc;
                CrystalDecisions.ReportAppServer.DataDefModel.ISCRTable crTable;
                CrystalDecisions.ReportAppServer.DataDefModel.ISCRField crField;
                rfc = rasReport.DataDefController.ResultFieldController;
                crTable = rasReport.Database.Tables[0];
                crField = crTable.DataFields[2];    // Hardcoded field "Customer Name" in the Customer table from Xtreme Sample Database
                rfc.Add(-1, crField);
                // Save the report template to disk (without data)
                //object path = @"c:\documents and settings\administrator\desktop\";
                //rasReport.SaveAs("test.rpt", ref path, 0);
                //MessageBox.Show("Done!");

  • Struts - map-backed property

    I have a dynamically generated struts form(map-backed property).
    This is HTML page generated by Struts.
    <tr>
    <td>Insurance - Cancel: </td>
    <td><input type="radio" name="field(2203)" value="I"></td>
    <td><input type="radio" name="field(2203)" value="N"></td>
    <td><input type="radio" name="field(2203)" value="U"></td>
    </tr>
    <tr>
    <td>Client Letter: </td>
    <td><input type="radio" name="field(2202)" value="I"></td>
    <td><input type="radio" name="field(2202)" value="N"></td>
    <td><input type="radio" name="field(2202)" value="U"></td>
    </tr>
    Form class
         private final Map values = new HashMap();
         public void setField(String key, Object value)
              values.put(key, value);
         public Object getField(String key)
              return values.get(key);
    I am trying to get a value from a radio button checked by a user. but I don't have a clue how to do it in Action class.
    does anybody know how to do it?
    Thanks in advance.

    I have a dynamically generated struts form(map-backed property).
    This is HTML page generated by Struts.
    <tr>
    <td>Insurance - Cancel: </td>
    <td><input type="radio" name="field(2203)" value="I"></td>
    <td><input type="radio" name="field(2203)" value="N"></td>
    <td><input type="radio" name="field(2203)" value="U"></td>
    </tr>
    <tr>
    <td>Client Letter: </td>
    <td><input type="radio" name="field(2202)" value="I"></td>
    <td><input type="radio" name="field(2202)" value="N"></td>
    <td><input type="radio" name="field(2202)" value="U"></td>
    </tr>
    Form class
         private final Map values = new HashMap();
         public void setField(String key, Object value)
              values.put(key, value);
         public Object getField(String key)
              return values.get(key);
    I am trying to get a value from a radio button checked by a user. but I don't have a clue how to do it in Action class.
    does anybody know how to do it?
    Thanks in advance.

Maybe you are looking for

  • Web service security (HTTPS)

    hi all.. i am devloping a web service application .. i have create a web service - server and publish it on tomcat server using https on port 8443. but when i want to creat the client in jbuilder (reading WSDL file from URL), it was faild.......so i

  • Cannot switch credit cards, one is about to expire...

    My credit card expired and I have no way to edit or add a new one. I have to cancel the existing subscription, according to the only reference in the credit entry screen. That's not reasonable, at least if I am risking losing the number I have. What

  • Need Explanation about code ABAP

    Hi, what does mean this code : *if not SOURCE_ENTETE-MONAT is initial. *BBKPF-MONAT = SOURCE_ENTETE-MONAT.   *endif.                                 i find it in LSMW (step number 5) what does mean exactly initial i want to integrate some FI document

  • Error in DataPlugin with set channelname

    Hi, I am trying to create a dataplugin for csv files, which has the channel names in the first line and the data in the precedinglines like a string block. When I read the channel names with out the set property i am able to get it through GetNextStr

  • Reports do not show inside DW

    I access admin for my BC site inside Dreamweaver and the reports flash on then go to a blank screen?