Format values: DB View or anything in ADF ViewObject?

Hi.
I have a DB table with a field called PERSON_ID, which is the ID of one person.My JDeveloper version is 11.1.1.7.0
With an Oracle funcion in DB, I pass this ID and get Mr. John Smith Smith ready to show in the application.
Other field in the table is AGE, with a raw simple number.
I need to generate an ADF table, and I need to show the formatted person name and his/her age.
I have tried these two approaches to get the solution:
Generate a calculated attribute in the ViewObject, and try to invoke the DB function: obviosly, if this was possible, I did something wrong, because it didn't work. If something like this was possible, it would be the best solution.
DB View: This works, but I can't commit data in this application window.
Create a DB View with formatted name, age, etc.
Map it in an EO and VO
Generate an ADF table from this VO
When the above form is filled, insert the form data in DB Table.
Commit the new row
Reload the ADF table.
How can I solve this issue?
Any suggestion is very appreciated
Thanks in advance. Regards

. I have tried these two approaches to get the solution:
Generate a calculated attribute in the ViewObject, and try to invoke the DB function: obviosly, if this was possible, I did something wrong, because it didn't work. If something like this was possible, it would be the best solution.
Did you follow this: http://docs.oracle.com/cd/E28280_01/web.1111/b31974/bcquerying.htm#CHDHJHBI
What you mean by "it didn't work"? Is there any error?
Another approach is to change query mode from normal to expert and directly add new column to sql query, but in this case you will need to manually synchronize attribute list and sql query every time when you modify columns in your view object(for example, when you add new column to table)
DB View: This works, but I can't commit data in this application window.
Event that is possible, but you need to define "instead of" trigger in db and modify lock() method in EntityImpl class, so this is overkill for your usecase.
Dario

Similar Messages

  • How can I pass field value betwen view in ICWC?

    Hi experts,
    I am new to this BSP programming. I have some requirements to modify standard ICWC in CRM 5.0
    Hope can get some advices and helps here.
    I have added a new field called <status> to context note SEARCHCUSTOMER in BupaSearchB2B view and also the same field name to context note CUSTOMER in BupaCreate view.
    I have added the field into both the HTM views and able to execute thru WebClient. However, I have one problem in passing the <status> value from BupaSearchB2B view  to the BupaCreate view when I click on the 'create' button.
    I do search and saw this thread How can I pass field value beetwen view in IC Web Client? , but i cant figure out how it works.
    Do I need to create the field <status> to context note CUSTOMER in BupaSearchB2B? Currently the context note does not have any attributes.
    Really appreciate for any help.
    Edited by: mervyn tay on Apr 7, 2009 11:42 AM

    solved by myself...
    code in the CREATE_ACCOUNT method.
            ev_entity->set_property( iv_attr_name = 'ZZICNO'
                                     iv_value = lv_icnum1 ).

  • How to  get formated value from query

    i get value from query use the follow method
    Object obj1 = dataAccess.getValue(i,j,DataMap.DATA_UNFORMATTED);
    Object obj1 = dataAccess.getValue(i,j,DataMap.DATA_FORMATTED);
    the first method retrun a value '1666.0',
    the second method return a value null
    but i want to get the value '1,666'.
    who can tell me how can get the formated value?

    Ahu,
    An implementation of DataAccess is not required to support all DataMap constants. For example, the OLAP-based Query object does not support DataMap.DATA_FORMATTED. To find out which DataMaps are supported for a particular implementation, you can call the DataDirector's getSupportedDataMap method.
    If you have an Crosstab instance, there is a way to get the formatted cell value, based upon the formatting rules associated with the Crosstab. Get the GridViewFormatManager reference from the Crosstab, and call its formatDataValue method to return a String representation of the formatted data value.
    Hope this helps,
    djb

  • Crystal for VS 2010 - formatting issues in viewer (extra space) again

    We're having the same problem as the one in this thread link:[Crystal 2008 for VS 2010 - Report formatting issues in viewer (extra space);. There's no resolution in the thread and it's been closed. I'm hoping that creating a new thread may cause someone to answer this problem.
    We have a Windows App that we just converted to .NET 4.0 and updated the viewer to the Crystal Reports Viewer in VS 2010. When we open a report that has a large block of static text in paragraphs left-aligned the spacing around punctuation is awful - there's almost a tab's worth of space between the last letter and the period. U.S. looks like US. This happens both with reports that were created in VS2008 and ones that were created in VS2010. It is only a problem in the viewer's display - if we print to a printer or export to PDF the spacing around punctuation is fine. It's also not a problem on our development workstations which are running Windows 7, but is a problem on our test servers which are running Windows 2003 Server. I ran the modules tool and found that the version of usp10.dll does match what the previous thread said it should be and it's coming from the c:\program files\sap businessobjects\crystal reports for .net framework 4.0\common\sap businessobjects enterprise xi 4.0\win32_x86\ folder. On my development machine when I run the modules tool I notice that a second instance of usp10.dll is called which is the version installed with Windows 7. We've tried changing fonts but none of the ones we've tried (originally in Times New Roman, 12, tried Arial, Times and various sizes) have made a difference. We also tried changing the print options with no improvement. The only thing that makes it slightly better is full-alignment but our customer insists that it be left-aligned.

    Re. the other thread. I never did receive a sample of the report to test with. Perhaps I can get one from you? I need you to ensure that the issue occurs with a "saved data" report. If it does, let me know if you can share it and I'll contact you via email. My comment in the other thread re. available time, priorities, etc., still applies. Also, just to be clear. Service Pack 2 for CRVS2010 is closed now. Thus if I am able to reproduce the issue the fix will be targeted for October \ November time frame - no guarantees though...
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • ADF - Multple View Objects in one ADF table - Jdeveloper 11g

    Hi,
    I'm using Jdeveloper 11g, is there a way to use multiple view objects in one ADF table? And if so, do you have an example?
    In my case the view objects are not based on a database table they were created based on an ESB wsdl, one is for person and one is for address.
    Any information or pointers you could provide would be appreciated.
    Thanks!

    Hi,
    That would be a good solution, however, I'm supposed to see if there is a way to use the VOs that were created for person and address. Even better if the solution requires little coding.
    Is it possible to combine these two VOs into a single VO to use with an ADF table or to use both of them in a single table? Or is there some other solution that would enable me to use the person and address VOs in a similar manner?
    Thanks!

  • Format of Filter view

    Hi all,
    How to change format of filter view in answers? How to remove border line of filter? I have looked in views.css and format of filter is set as
    .FilterFirstTable
    .FilterTable
    border: solid 1px #CCCCCC;
    .FilterCell
    font-size: 8pt;
    border: 0px;
    text-align: left;
    padding: 2px 4px;
    .FilterValueSpan
    font-weight: bold;
    .FilterOpCell
    font-size: 8pt;
    font-weight: bold;
    vertical-align: top;
    top: -6pt;
    padding: 2px 0px 2px 4px;
    And problem is that I have border line. But when I log on VMWare on samplesales repository the same format is there. But there is no borderline on filter view.
    Thanks

    Changing the ini files should change the date format. Have you amended the correct instances of the date format? In dbFeatures there is one for every ODBC connection.
    For example in my DBFeatures.INI
    [ DATA_SOURCE_FEATURE = ODBC_300 ]
    DATE_FORMAT = 'dd-mm-yyyy' ;
         TIME_FORMAT = 'hh:mi:ss' ;
         DATE_TIME_FORMAT = 'dd-mm-yyyy hh:mi:ss' ;
         IDENTIFIER_QUOTE_CHAR = '"';Also a file on the presentation side in OracleBI \web\Config called localedefinitions.xml.
    Inside that there appears to be defaults for localisations - maybe it is possible to amend your locale in the Administration settings of the dashboard.
    However, I haven't tried this sorry.

  • Crystal Report Key figure formatted value

    Hi,
    I have restricted key figures defined in my BEx query based on a 'Quantity' type key-figure. I have maintained a display setting for these RKFs restricting to just one decimal place (10.0). Now I am trying to make use of this format setting in my Crystal report built on top of the BEx query by dragging in the 'Key Figure formatted value' node into my report. Although crystal report gives me the formatted value of one decimal place (10.0), it also attaches a Unit symbol next to the value (10.0 KWH)
    How do I suppress the Unit of Measure for the measure in my report?
    Thanks
    SR

    HI SR,
    If you are not doing any calculatins with this field, then use the following :
    Left('10.00',(instr('10.00','.')+1))
    Note : replace '10.00' with your field.
    Thanks,
    Sastry

  • Format of messages viewed on iPhone modified

    I am using MSExchange and the Push service on my iPhone (iOS4). Sync is configured and working. Email messages I receive and first view on the iPhone in Rich Text or HTML format cannot be viewed subsequently in these formats on my PC using Outlook. All these messages can only be viewed in plain text format. All embedded images are lost.
    I cannot see any setting on the phone that I need to make in order to be able to prevent the change in formatting of these emails.
    Hope someone has a reference on how to solve this issue?
    Thanks

    Hey Radiation Mac, thanks for the reply.
    But... isn't that the opposite of how IMAP is supposed to work? From what I understand, IMAP leaves messages on a central server, which lets you access them from multiple locations, as described here:
    http://www1.umn.edu/adcs/guides/email/imapvspop.html
    It shouldn't delete a message that I've read, unless I actually hit delete. Or am I completely wrong??

  • Passing field values from View Controller to Custom Controller

    Hi Experts,
    I am working on a customer requirment in which customer want to see the values of field from one view in another view. The Context node & Context node attribute are the same in both the views.
    I am aware that we need to pass the field values from view controller to custom controller in order to see the field in the subsequent view. I would like to kow how i can achieve that technically?
    Kindly let me your valueable suggesions.
    Best Regards,
    Prabahar

    Hi Carsten,
    Thank you for the detailed feedback.
    I want the fields ID_TYPE & ID_TYPE_DESCRIPTION from IUICMD/SearchAccount to be available in IUICMD/DetailAccount. I have created a context node u201CSEARCHu201D in view IUICMD/DetailAccount. I have created the context node with out choosing u201CCreate with Instanceu201D.  This Context node (SEARCH) is already available in IUICMD/SearchAccount as part of the standard.
    Below given is contents of the Method CREATE_SEARCH of my context class ZL_IUICMD_DETAILACCOUNT_CTXT of view IUICMD/DetailAccount, which is created by the Wizard during enhancement.
    method CREATE_SEARCH.
        DATA:
          model        TYPE REF TO if_bsp_model,
          coll_wrapper TYPE REF TO cl_bsp_wd_collection_wrapper,
          entity       TYPE REF TO cl_crm_bol_entity,    "#EC *
          entity_col   TYPE REF TO if_bol_entity_col.    "#EC *
        model = owner->create_model(
            class_name     = 'ZL_IUICMD_DETAILACCOUNT_CN00'
            model_id       = 'SEARCH' ). "#EC NOTEXT
        SEARCH ?= model.
        CLEAR model.
    bind to custom controller
      owner->do_context_node_binding(
               iv_controller_type = CL_BSP_WD_CONTROLLER=>CO_TYPE_CUSTOM
               iv_name = 'IUICMD/CuCoMD' "#EC NOTEXT
               iv_target_node_name = 'BUILHEADERSEARCH'
               iv_node_2_bind = SEARCH ).
    endmethod.
    I have enhanced the Custom Controller. Now it have new implementation class u201CZL_IUICMD_CUCOMD_IMPLu201D
    Let me know where I am doing mistake
    Thanks in advance
    Best Regards,
    Prabahar
    Edited by: Prabahar Raju on Sep 2, 2009 10:47 AM
    Edited by: Prabahar Raju on Sep 2, 2009 10:52 AM

  • HT1296 i cannot transfer some videos to my iphone 3gs. the file is in MPEG4 format. i can view in itunes but cannot be transfered to iphone. Please help me with this problem.

    i cannot transfer some videos to my iphone 3gs. the file is in MPEG4 format. i can view in itunes but cannot be transfered to iphone. Please help me with this problem.

    In iTunes, Advanced>Create iPod or iPhone version

  • "Formatted for mobile viewing by Google"

    When you use Google's mobile search engine with the built-in Nokia browser and choose one of the resulting links, does the site ever appear "formatted" by Google?  This has happened now for several weeks and is driving me crazy!  Why?  Because their "formatted" page looks awful, and because I resent their paternal attempts to protect me from the web!  I see "page 1" and "zoom" links at the top, and the text "Formatted for mobile viewing by Google" and a "View page directly" link at the bottom.  So to to view the site as I expect, I must now load every page twice!
    My phone is an E73 and I'm in the USA, but I expect this new "feature" affects a wide range of Nokia phones.  Except that I appear to be the first person here complaining.   Perhaps this "feature" isn't yet available worldwide?
    Sooo, does this problem affect anybody else??  Thanks!
    Solved!
    Go to Solution.

    A happy update.   I tried contacting several tech news web sites, to see if their journalists would take up my cause and use their contacts at Google to learn what is going on.  (Mere users certainly can't reach Google anymore!)  I met a nice fellow from CNet, but even he didn't seem to take my situation very seriously.
    So I changed tactics and started taunting Google.   At the bottom of every reformatted page is a "Report a problem" link, which leads to a list of common problems and solutions.  The last problem is "Other", which leads to a web form.  2 or 3 times a day, I was submitting things like
    "I am a user and would like to PERMANENTLY disable reformatted web pages for my Nokia E73 phone, without using logins or cookies.  This is a 2-year-old phone and I have gotten by very well so far without your meddling."
    "I am a user and take great exception to your attempt to reformat web sites.  I get the impression your programmers have run out of things to do and are now making changes for the sake of change, and not based on user feedback.  I do not need protection from the big, bad www!  Nokia E73 user."
    and lastly
    "The new, improved Google mobile search proved as welcome as Lupus.  A Nokia E73 user."
    (If anybody relied on DejaNews in the late 1990's, their usenet search database was a godsend at first, but the web interface was gradually retooled to the point of being unusable.  And then an upstart company named Google rescued us by buying the database and again giving it a usable front end.  IMHO, Google's search interfaces are now reaching DejaNews complexity and are in need of being rescued themselves.  An article on suck.com about the fall of DejaNews inspired the above comment.)
    Fast forward about a week and now no search results are reformatted.  Even the Preferences link on the main search page doesn't include the option "Format web pages for your phone".  Yes, it's possible Google still wasn't listening, and this was just the result of them further refining their filters.  Or maybe they turned the whole thing off for now?  But for anybody with this problem also needing a resolution, I still highly recommend clicking "Report a problem" and "Other" and telling them what you really think!

  • Yosemite looks like a downgrade, flat, childish and no more ability to make the view of anything personal.  How do I go back to the previous operating system?

    Yosemite looks like a downgrade, flat, childish and no more ability to make the view of anything personal.  How do I go back to the previous operating system?

    Erase your hard drive using Disk Utility from the Recovery HD, then restore your old system from your backups.

  • Default Values in View

    I have a view to count daily number of logs in different tables. If for a particular table there have been no logs than view will return null.
    How can I set a null value in view to a default of 0?
    James.

    Something like this perhaps...
    Cheer, APC
    SQL> CREATE TABLE log1 (col1 number);
    Table created.
    SQL> CREATE TABLE log2 (col1 number);
    Table created.
    SQL> CREATE TABLE log3 (col1 number);
    Table created.
    SQL> INSERT INTO log1 VALUES (3);
    1 row created.
    SQL> INSERT INTO log1 VALUES (2);
    1 row created.
    SQL> INSERT INTO log3 VALUES (23);
    1 row created.
    SQL> CREATE OR REPLACE VIEW log_cnts AS
      2  SELECT l1.cnt1 AS log1_cnt
      3         , l2.cnt2 AS log2_cnt
      4         , l3.cnt3 AS log3_cnt
      5  FROM   ( SELECT count(*) AS cnt1 FROM log1 ) l1
      6         , ( SELECT count(*) AS cnt2 FROM log2 ) l2
      7         , ( SELECT count(*) AS cnt3 FROM log3 ) l3
      8  /
    View created.
    SQL> SELECT * FROM log_cnts
      2  /
      LOG1_CNT   LOG2_CNT   LOG3_CNT
             2          0          1
    SQL>

  • Format List Calendar View Days

    We'd like to format the calendar view of a list not off the data entered for each of the days, but off the actual day of the week.
    For example:
    Saturday and Sunday boxes would be red
    Monday boxes would be blue
    Tuesday-Thursday boxes would be yellow
    Friday boxes would be green
    I'm trying this to at least get the first column/Sunday color coded, but nothing is happening:
    <script type="text/javascript" src="/sites/ProjectSite/SiteAssets/jquery-latest.min.js">
    <script type="text/javascript">
    $(function() {
    var $t;
    var interval = setInterval(function() {
    $t = $("table.ms-acal-month>tbody tr td:nth-child(1)");
    $t.each(function(){
    $(this).style("background-color", "red");
    }, 1000);
    </script>
    Any ideas on how to even start with this?

    I had to add the 'ms-acal-summary-itemrow' class to the tr element as shown below:
    $sun = $("table.ms-acal-month>tbody tr.ms-acal-summary-itemrow td:nth-child(1)");
    $mon = $("table.ms-acal-month>tbody tr.ms-acal-summary-itemrow td:nth-child(2)");
    $fri = $("table.ms-acal-month>tbody tr.ms-acal-summary-itemrow td:nth-child(6)");
    $sat = $("table.ms-acal-month>tbody tr.ms-acal-summary-itemrow td:nth-child(7)");

  • Difficulty with Format Value for Time Format

     I have a vi where the current time is split out of an Analog waveform (using Get Waveform Components), and subtracted from a starting time, to result in  a relative time since the test began.  This may not be the most elegant way of doing it, but it works great.  The problem is that when I try to convert the elapsed time in seconds back to a time format for saving to a spreadsheet, I get the results shown by the probes.  In case the screen capture is not clear enough, the format string is     %<%H:%M:%S>t.  A colleague has tried this format and it works great. He's running 8.2, and I'm running 7.1.  Other than that, our applications appear identical.  Any ideas? 
    Attachments:
    Screen Capture2 of Time Format for HTV.png ‏17 KB

    I'm also on 8.2 and it works fine for me. Maybe format value couldn't handle time format codes in 7.1. I'm not really sure and I don't have it installed to check. Why don't you use "Format into String" instead? It will work the same way, and should work fine with 7.1.

Maybe you are looking for

  • How to encrypt UserID and Password in HTTP url

    Hello experts,      We want to encrypt UserID and Password which has used in http URL in SAP PI 7.1. As we have used SOAP adapter with Transport Protocol HTTP for sender server. Kindly help us on it. Regards, Poonam.

  • External files codepage

    Hi, I'm now writting some as that will load information from several files. However, I am not able to edit these files, and they may be available with different codifications, like iso8559 or Unicode. Is there a way to identify the way the text was s

  • Acrobat 9 Distiller Profile in Acrobat X Distiller

    Hi All, We have received a distiller profile which was created using Acrobat 9 and likely to upgrade distiller server X. Will acrobat 9 distiller profile combatible for X and will there be any issue? Regards, Selvakumar

  • ANN: Setting up PHP in Mac OS X Leopard - tutorial

    The Mac PHP package created by Marc Liyanage that I recommend in my books is not yet compatible with Mac OS X 10.5 (Leopard). The new version of Mac OS X comes with Apache 2.2.6 and PHP 5.2.4 preinstalled, but not enabled. Getting them up and running

  • Error -43 when updating to ios 5

    Updated to iTunes 10.5 this morning.  When updating my iPhone 4 (4.3.3) I received the following error: "An error occurred while backing up the iphone (-43).  Would you like to continue to update this iPhone?  Continuing will result in the loss of al