Display format input for UserDatasource

Hi, i'm creating new userdatasouce, i had link this UDS to edittext and wanted to set display format as time. Anyone know how to do this ?

hi
try this
               oForm.DataSources.UserDataSources.Add("APLX_DADO", BoDataType.dt_DATE, 20);
                oItem = oForm.Items.Add("A_EDAOD", BoFormItemTypes.it_EDIT);
                oItem.Left = 120;
                oItem.Top = 90;
                oItem.Height = 15;
                oItem.Width = 50;
                oItem.ToPane = 1;
                oItem.FromPane = 1;
                oEdit = (EditText)oItem.Specific;
                oEdit.DataBind.SetBound(true, "", "APLX_DADO");
i hope it helps
but if you need time f.e. 12:23 you should use  BoDataType.dt_SHORT_TEXT, 5
and then parse it to dateTime structure
regards
Edited by: Michal Wieczorek on Mar 18, 2008 10:35 AM
Edited by: Michal Wieczorek on Mar 18, 2008 10:35 AM

Similar Messages

  • Format input for Sql*Loader

    I have a problem in formating an input file for Sql*Loader
    The file has the following format:
    1 Jeff
    2 Kyle
    3 Tom
    1 Lisa
    2 Bryan
    3 Max
    4 Rob
    5 Steve
    1 Richard
    2 Mary
    and so on
    the file should look as follows to process with Sql*Loader:
    1 Jeff 2 Kyle 3 Tom
    1 Lisa 2 Bryan 3 Max 4 Rob 5 Steve
    1 Richard 2 Mary
    any suggestions?
    Edited by: royce on Sep 18, 2008 2:08 AM

    royce wrote:
    I have a problem in formating an input file for Sql*Loader
    The file has the following format:
    1 Jeff
    2 Kyle
    3 Tom
    1 Lisa
    2 Bryan
    3 Max
    4 Rob
    5 Steve
    1 Richard
    2 Mary
    and so on
    the file should look as follows to process with Sql*Loader:
    1 Jeff 2 Kyle 3 Tom
    1 Lisa 2 Bryan 3 Max 4 Rob 5 Steve
    1 Richard 2 Mary
    any suggestions?
    Edited by: royce on Sep 18, 2008 2:08 AMActually, looking at your data again, you don't have a consistent format, so this makes it really difficult for something like SQL*Loader to process. If there were just e.g. 3 rows per record then that would be simple, but you are expecting SQL*Loader to look ahead to determine if there is more data or if it's reached the end of the record.
    You would be better to load the data (external tables would probably make it quicker and easier as the data will come in the order as it is specified in the file, which would help as you have no group identifier against the sets of records) as it is and then use SQL to process them.
    You haven't specified the resulting table that the data is loaded into. Is that just one single VARCHAR column with all the data concatenated or is it several columns (one for each name)?

  • Display format, can I go back to that display type version ?

    I am getting a new display format now for last two days, earlier one was better. Can I go back to that display type version ?

    You haven't told us much. Which version? Which particular part is being displayed differently?
    I'd guess you are distressed by the composition window. I'd suggest you grit your teeth and bear with it, as there are plans to improve it. What worries me about the discussion between developers is that they all seem to be using Mac computers, with little regard to what it looks like in Windows. The changes I'm thinking about are being done, I'm told, to prepare the way for features that are frequently requested, such as drag and drop of addresses and the ability to stack multiple addresses in one line, a la Outlook.
    Or you could go here:
    https://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/
    and download version 24.6

  • Can we display comments row for row in Input Ready Query...

    Dear All,
    Currently I have created Web template with Signle Document. When executed it in the Portal it will come up with a "Save" and "Cancel" button of its own and can allowing me to capture comment here & Finally Click on SAVE button which was stored in Documents area in RSA1.
    Now I am was trying to figure out to display comments Row for Row in Input Ready Query...
    Can you give ideas on this...

    Check link http://help.sap.com/saphelp_nw04/helpdata/en/1e/99ea3bd7896f58e10000000a11402f/frameset.htm
    In query properties in BEx query designer you have to do settings to - Display document links
    For metadata, master data, and InfoProvider data for a query, you can display links to Documents that you have created for these objects. If documents exist for these objects, the symbol  appears next to these objects. If you click on this symbol, you jump to where the document is displayed on the Web.
    Highlight the appropriate setting so that the document links for the desired document class are displayed. The document classes are oriented to the various categories of BW objects. InfoProvider data, metadata and master data.

  • Multiple display formats for several records coming from the same table

    Hello all,
    I want to create one Crystal Reports XI report to display several records coming from one table, but I need different display format for different records from that one table.
    There is a field RecordType and based on that value, the record will be displayed differently on the report page.
    Can I have several sections in the report and to define different SQL query in each of them?
    Example of the report I need to see on paper:
    ================================================
    Summary of 216 vehicles:  (the value 216 comes from record with RecordType=1)
    Vehicle Category    Number of Vehicles
              A                   5          (this value 5 comes from record with RecordType=2)
              B                   7          (this value 7 comes from record with RecordType=3)
              D                   4          (this value 4 comes from record with RecordType=4)
    Category A vehicle numbers:
    2345   6789   8765   5543   3452    (these five values come from records with RecordType=5)
    Category B vehicle numbers:
    9876   8876   9987   4321   6754   5215   4543    (these values come from records with RecordType=6)
    Category D vehicle numbers:
    2343   2344    2348   2377    (these values come from records with RecordType=8)
    ==============================================================
    Text is fixed (labels), number values are coming from table records.
    What would be a good way to do this in Crystal Reports XI ? In Cognos ReportNet, I would just create several Queries (SQL sentences) and place their outputs on a page, one after the other.
    I use Crystal Reports XI R2 and Oracle 10g database through and ODBC connection.
    Thank you,
    Milan

    Obaid and Debi,
    Thank you for your replies.
    I can create multiple sections in the report, but I don't know how to split the 20 records that I get back from the database to be displayed in 5 different report sections.
    How can I define different SQL statement for each of 5 report sections?
    How can I use cross-tabs to display what I need? Can I define SQL statement for each cross-tab and then I could place only RecordType=1 records into cross-tab-1 and all RecordType=2 records into cross-tab-2 ?
    In Cognos ReportNet, I defined 2 Queries (SQL statements) and I just placed them in the report one below the other. Query_1 returns 1 record where RecordType value =1. Query_2 returns 5 records where RecordType value =2 and etc. So each record "section" displays record in the way I want it.
    ================================
    Summary of 216 vehicles:  (the value 216 comes from record where RecordType=1)
    Category A vehicle numbers:
    2345   6789   8765   5543   3452    (these values come from records where RecordType=2)
    ================================
    How can I do that in Crystal Reports XI ?
    How can I run several SQL statements from one report?
    Thank you,
    Milan

  • Display format for Exif Tag: ExposureTime

    Hello,
    I'm a user of Adobe Photoshop Elements 3.0, in which the image editor component displays "File Info" (Exif and XMP information) embedded in the image file using the Adobe Photoshop Information Panels, which are XMP files (
    DOCTYPE panel SYSTEM "http://ns.adobe.com/custompanels/1.0").
    Unfortunately, my camera embeds the Exif tag
    ExposureTime instead of the Exif tag
    ShutterSpeedValue.
    In the camera1.txt XMP panel file, the ShutterSpeedValue field is defined as (the Adobe Forum Web UI will break the formatting)
    static_text(name: '$$$/AWS/FileInfoLib/Panels/Camera1/ShutterSpeed=Shutter Speed:', font: font_big_right, vertical: align_center);
    edit_number(format: apex_shutterspeed,  precision: 2, format_addin: '$$$/AWS/FileInfoLib/Panels/Camera1/ShutterSpeedFormat=^0 sec',locked: true, horizontal: align_fill, xmp_ns_prefix: 'exif', xmp_namespace: 'http://ns.adobe.com/exif/1.0/', xmp_path: 'ShutterSpeedValue');
    I changed this to:
    static_text(name: '$$$/AWS/FileInfoLib/Panels/Camera1/ShutterSpeed=Shutter Speed:', font: font_big_right, vertical: align_center);
    edit_number(format: decimal,  precision: 4, format_addin: '$$$/AWS/FileInfoLib/Panels/Camera1/ShutterSpeedFormat=^0 sec',locked: true, horizontal: align_fill, xmp_ns_prefix: 'exif', xmp_namespace: 'http://ns.adobe.com/exif/1.0/', xmp_path: 'ExposureTime');
    in order to display the correct Exif tag.
    But how can I display the usual reciprocal shutter speed format ("1/160th sec") instead of the decimal format ("0.0063 sec")?
    Any help much appreciated!

    Don't know about the display format problem ... but there seems to be another quirk. Obviously you are confusing shutter speed with shutter speed value. These are two different things. The shutter speed value is the inverted base-two logarithm of the shutter speed in seconds. Example: shutter speed = 1/128 s --> shutter speed value = 7.
    By the way, there's a similar difference between aperture and aperture value; the latter is twice the base-two logarithm of the f-stop number. Example: aperture = f/8 --> aperture value = 6.
    -- Olaf

  • EXT Display Format LabVIEW bug

    Up for grab, this easy bug (tested in LV 2012.0f3 (32 bit) on Windows XP)
    From a clean start, create a new VI, drop a "Power of x" function and create control for all input and output. Set the representation of the controls/indicators to be "Extended" (I do that for "Y" first and then the other one are automatically created with the corect type). You get this:
    On the FP, enter 300 for Y and 0.01 for X and run the VI (you expect a result of zero).
    Just for fun, set the Display Format of the output (x^y) to Scientific just to check whether there is no hidden digit somewhere.
    Well, surprise!
    Here is what I get first:
    Then, after pressing OK:
    and after Cancel:
    The VI is password protected, so I ended up my little experiment here.
    Note that if you set the Display Format of x^y BEFORE you run the VI, there is no problem at all. However, once you have run it once, the dialog will pop-up at all times. This does NOT prevent you from changing the format, but it is annoying at the very least...
    I tried it with Exponential as well, trying a value of X = -1000 (you expect again a result of zero), to the same effect. It sounds like an underflow of some sort.
    There is no such problems with type Double.
    Comments welcome.

    X. wrote:
    Comments welcome.
    Ignoring for a moment what the actual problem is, I think the sequence of events is fairly simple:
    You open the property page and try to set the format.
    The property VI calls that subVI with the relevant data.
    In the subVI there is a format into string primitive with an unwired error output (or it's unwired downstream).
    There's an error and the VI has auto error handling enabled (or possibly not and this is an internal dialog, since the AEH dialog is different), so it tries to show you where the error happened.
    The VI is locked, so you get a PW dialog.
    Try to take over the world!

  • Error while running a query-Input for variable 'Posting Period is invalid

    Hi All,
    NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
    I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
    Diagnosis
    Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
    System Response
    Procedure
    Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
    Procedure for System Administration

    OK.
    Well, if the variable is not used in any interval selection, then I would say "something happened to it".
    I would make a copy of the query and run it to check if I get the same problem with period 12.
       -> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
    If so, then try removing the variable completely from the query and hardcode restriction to 12.
       -> If problem still persists, I would have to do some thinking.
    If problem is gone, then add the variable again. Check.
       -> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
    If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
    Good luck!
    Jacob
    P.S: what fisc year variant are you using?
    Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM

  • Want the data store values to be displayed in input field of form

    Hi,
    I wanted to know wether is there possibility of displaying the data in a input field instead of expression field.
    In our model i have used a form which has material type,plant and Vendor connected to data service1 in turn gives the out put in chart and i also have the second input form which has To(0CALMONTH) combo box which is connected to Data service2 and gives the data in table.
    But what i wanted is to i also want to use the input fields of first form to second Data service2 and get the data based on on inputs of form1 and form2i.e also To field.
    We can connect the port from form1 to DS2 but problem is we need to click the submit of form1 and form2 and it doesnt gives the output according the input of form1 and form2 as it gives the output of that form when we click that submit button.
    I have followed help.sap for data tore procdure.
    So i have used a datstore where i will store the values of form1 and call it in expression field which i will add and hide it in form2(hide because user should not see that input fields).
    Formula used in data store for expression field.
    IF(CONTAINS(STORE@matltype,@Material_Type),STORE@matltype,STORE@matltype &(IF(LEN(STORE@matltype)>0,'; ',''))&@Material_Type)
    But whats happening is the value is getting concatenated when i goon change the values in input field, so i wanted to get the values to be replaced as soon as i change input field of form1(if  use replace function its not working) and also it would be more preferrable if we use input field instead of expression field.
    I would also like to know is there any alternate solution for the above requirement instead of datastore.
    Thank You
    K.Srinivas

    Hi,
          I have Form1 connected to Data service1 displays the data in a Chart and i have another Form2 connected to Dataservice2 displays the data in table.
    In form1 there are Material Type,plant, and Vendor and form2 i have To (0CALMONTH)SO now i want also Form1 inputs for Table which gets teh data from Dataservice2.
    What i have said earlier is connecting Form1 to Dataservice doesnt fetch the data correectly,its because if i click submit in form1 i get the data of those 3 inputs and i need to click the submit button in form2 after giving input which shows the data accordingly where it doesnt fulfill the requirement.
    So i wanted some solution for that.For that reason i have used the data store and the procedure i have followed the help.sap as i said in my above mesage.
    If Data store is also suggestable than i want to display the data in Text input Field  instead of Expression field which should replace the previous values as soon as values change in data store.
    Hope i have tried to be clear if still it is not i am ready to explain again.
    Thank You
    K.Srinivas

  • Data display Format issue.

    Hi ,
    I have the following columns for a single item(SingleVO),
    ItemNo, SugQty, OrdQty, Description,
    I would like to display the data in a table(Normal table or in a Advanced Table) with the
    following format. If there are 50 items, First row should display the First Item's
    itemno, sugqty, orgqty and the secondrow should display the description of the first item and third row should display the Second item's itemno, sugqty, orgqty and the fourthrow should display the description of the second item ....etc.
    Column Names:
    |-------------------------------------------------------|
    |Itemno |     SugQty     |     OrdQty     |     
    |-------------------------------------------------------|     
    |<---------Description--------------------------------> |
    |-------------------------------------------------------|
    Data:
    |-------------------------------------------------------|
    |12344 |     63 |     60     |     
    |-------------------------------------------------------|     
    |<---------Dulux Paint No2----------------------------> |
    |-------------------------------------------------------|
    |12345 | 98     |     100 |     
    |-------------------------------------------------------|     
    |<---------Table set ------------------------> |
    |-------------------------------------------------------|
    I tried with advanced table merging functionality, i couldn't get this type of display.
    Pointers are appreciated.
    (Since we are doing this application for Mobile devices we need to get this kind of display)
    Thanks.
    With Regards,
    Kali.
    OSSI.
    Format change.
    Message was edited by:
    Kalimuthu V
    Message was edited by:
    Kalimuthu V

    Thanks Ranjit,
    We build the table dynamically using rows and columns with the required spans.
    So that we could achieve the same display format.
    Thanks.
    With Regards,
    Kali.
    OSSI.

  • How to display "No data for yesterday" in a scheduled report on Webi

    Hi All,
    In Webi, I am working on scheduling reports and was asked by a user if the scheduled report on Webi can display "No data for yesterday/no orders for yesterday" when the report returns no data due to No Orders submitted or a business holiday. This sounded a good idea to me as this report only looks for previous days orders/sales and there are many instances when the report will return blank page due to no activity the day before.
    Can anyone please guide me on the possibility of achieving something like this on Webi using Bex query.
    Any help will be appreciated .
    Thanks
    Gaurav

    Hi,
    You can format the blocks in the report as "Hide When Empty" or "Hide When [some formula]" and have a blank cell added behind these blocks with a text "No Data for Yesterday"
    Need to set the relative position and ordering for this accordingly.

  • How do you set a default format property for a formula defined in the AWM?

    Is there a way to define a default format property for a formula that I create in the AW?
    For example, if I define a formula in AW I can assign it a datatype of decimal. But what property do I need to add if want that formula to by DEFAULT always display a certain way, regardless if I use the Discover Plus with OLAP option or OracleBI Spreadsheet Addin?
    Example: want to display it by default, in the AW cube, as being associated to a format of 00.0000 or 00.0000% or $###,##0.00 etc. This way, no mater what tool I use to view the cube, it will by default inherit my default format (set in the AW).
    Thanks.

    Okay, but if I use the out-of-the-box products Oracle provides (ie: Discover Plus with Olap, and the OracleBI Spreadsheet Addin) I still dont understand what my solution is?
    The only other solution we tried was to create formulas using AWM template files. The issue here is trying to find out what property syntax needs to be added to the XML code, so that my formula, by default, is associated to a certain formating style (ie: 00.00). And then when you reference that formula in those out-of-the-box Oracle products, it displays as expected.

  • Batch input for IQ02 not accepting "yes" for 'POPUP_TO_CONFIRM'

    Hello,
    I wrote a batch input for a transaction (IQ02) and all works fine except one thing:
    -when all data  is entered and SAVE button is pressed, there is an additional pop-up, from an user exit which needs an YES/NO answer.
    The function module used to display the popup is: 'POPUP_TO_CONFIRM'
    I do not manage to press the YES button. This is the data I receive when pressing F1 on YES button:
    Program         SAPLSPO1
    Function          OPT1
    Normally, in batch input, this is the way I pass user-commands:
    PERFORM bdc_dynpro USING 'SAPMIEQ0' '0101'.
    PERFORM bdc_field USING 'BDC_OKCODE' '/00'.
    But it's not working for this particular situation.
    Any ideas?
    Thank you.
    Edited by: Julius Bussche on Jan 5, 2009 2:07 PM
    Quality of subject title improved.

    Hi
    Find out under which condition popups appears.
    for that condition you have to put the following code
    PERFORM bdc_dynpro USING 'SAPLSPO1' ''<SCREEN_NUMBER>'.
    PERFORM bdc_field USING 'BDC_OKCODE' '=OPT1' .
    Hope this helps,
    Rajat

  • Display document header for a parked document in ECC 6.0

    Hi,
    Does anyone know how to view the header information of a parked document? I cannot find the u201CDisplay header/hatu201D icon anymore when I go to display a parked document via FBV3. This is in ECC 6.0 whereas; in 4.6C I see the u201Chatu201D icon. For the same parked invoice, in ECC 6.0 it is calling FV63 whereas in 4.6C it is calling FBV3 internally to display the parked document when document, company code and FY are input on FBV3 and hit continue.
    Please let me know if there is way to display header info for a parked document in ECC 6.0.
    Thanks,

    Thanks for your reply!!
    What document are you displaying? I tried displaying a parked vendor invoice and that is when I do not see the hat icon. Probably you are displaying a G/L document (example SA), I am able to see the hat icon in that case.
    In 4.6C, it calls FBV3 internally for displaying both invoices and regular g/l documents whereas, in ECC 6.0 it is calling FV63 if it is an invoice and on FV63 I do not see a hat icon. So, was wondering is that how it is or is there any setting that needs to be turned on?
    Thanks,

  • Display text area for printing

    Hi,
    I know here are many threads about displaying a textarea as read-only. but no solution fits my requirements.
    I have a page with many fields among other things 3 textareas. This textareas a normally display as autoheight. for printing this page I have created a new one, where all items are read-only, because of the nasty brackets, if page is displayed in printer-friendly mode.
    If my textareas hve more lines then declared for height, they are displayed with a scrollbar. That's not acceptable for me , because I must have printed all the text, not only the one in the scrollable area. In printer-friendly mode, the textarea is automatically set to a height, so that the text is completly shown.
    When I print this page, the textareas are set to a width of 17 lines (declared in height: 4 lines), equal if there is 1 line entered or 20. But I like to have shown / printed all entered lines, so if 1 line is entered I like to see / have printed a textarea with 1 line (max 3) and if 20 lines are entered I like to see / have printed a textarea with 20 lines (max 22). How can I do this???
    Thanks
    chrissy

    Chrissy,
    There might be a way to get this functionallity through the css and template for 'Printer Friendly'.
    However, what I'd do is write a PL/SQL routine to create a HTML page and get all the formatting done the way you like there. I have mine pop up in a new window with the menu bar, so the print option is available if the user wants.
    Through PL/SQL you're dealing just with the column data, not also having to deal with the various elements to display the data, such as a textarea. I simply create HTML tables to hold the data, and place the data in the various <td> elements of the table. The table then controls the layout, and multi-line fields get automatically wrapped.
    Bill Ferguson

Maybe you are looking for