Change look of Time Type

Hi Guru's!
I have a question regarding the type Time.
I have a table in my application which is bound to a ModelNode (rfc)
the Time Attribute is bound to my table editor of type (TextView), and the representation is: hh:mm:ss fx(12:00:00).
Is it possible to remove the seconds in an easy way?
Help is apreciated.
Br
Ronni

Ronni,
For value node try add the following to wdDoInit of controller where attribute defined (i.e. if it's defined in component controller and mapped in view controller then place code to component controller; if it's defined in view -- then in view controller):
final ISimpleTypeModifiable mtype = wdConext
  .node<YourNode>
    .getNodeInfo()
      .getAttribute("YourTimeAttr")
        .getModifiableSimpleType();
mtype.setFormat("HH:mm");
Unfortunately, this doesn't work for model attributes. As a workaround:
1. Create 1..1 non-singleton value sub-node, selection 1..1, initializeLeadSelection=true
2. Add attribute TimeFormatted of type time, mark this attribute as calculated
3. In generated getter/setter just return/apply value from/to corresponding attribute of parent element:
<getter> --
return (Time)element.node().parentElement().getAttribute("YourTimeAttr");
<setter> --
element.node().parentElement().setAttribute("YourTimeAttr", value);
4. Apply format to calculated attribute (as described in the beginning of this post.
5. Bind TextView in table to calculated attribute.
Valery Silaev
SaM Solutions
http://www.sam-solutions.net

Similar Messages

  • Can't figure out why colors don't totally change when you select type with curser? It looks like it has by looking at it, but when you highlight the area after the old color is still there. It happens with objects to. Driving me NUTZ. Help!

    Can't figure out why colors don't totally change when you select type with curser? It looks like it has by looking at it, but when you highlight the area after the old color is still there. It happens with objects to. Driving me NUTZ. Help!

    Select the text, and open the Appearance palette (Come on guys, text highlight is irrelevant, it happens to objects too says the OP), and see what's listed there.  For a simple text object, there should only be a line item "Type", followed by "Characters", and when double-clicked the Characters line item expands to tell you the stroke and fill color.  For a basic object, there should be a fill and/or stroke.
    What happens sometimes, is that you end up adding extra strokes/fills to objects or text, and the appearance palette is where that will be noted.  Especially when you are dealing with groups, and/or picking up a color with the eyedropper, you may inadvertently be adding a fill or stroke on top of something.  You can drag those unwanted thingies from the Appearance palette into its own little trash can.

  • How to change at run-time the type of a step?

    Hi,
    How topic title, i need to know how change at run-time the type of a step. I have, i my sub-sequence, a step whose type must change at run-time based upon the occurrence of a condition. How can do it?
    Thanks.

    I need to do this: At verify of a condition, one specific step at the end of sequence must change from statement to numeric limit test and viceversa.
    However, is right to no writing self-modifyinf sequence  unless handle rece condition on step that i want change at run-time.
    Moreover i ask myself: If for change the type of a step i need first delete the substep and later create a new one relative to the step that I want, then it is better and make more sense to create dynamically the step that i would like to have depending on the condition that occurs, right?
    Thanks

  • User exit or Badi for changing the lead time in ATP check in VA01/VA02

    Hi All,
    Currently, SAP standard functionality takes up the lead times maintained in material master to create the schedule lines in the sales order in VA01. I am looking for some user exiit/Badi/Enhancement point where I can change the lead time. This is somewhat urgent so any help in this regard is appreciated.
    Regards,
    Sandeep
    Edited by: Sandeep Gaitonde on Sep 1, 2011 9:16 PM

    Hi Sandeep,
    These are the user exits will trigger in va01 .
    SDTRM001 Reschedule schedule lines without a new ATP check
    V45A0001 Determine alternative materials for product selection
    V45A0002 Predefine sold-to party in sales document
    V45A0003 Collector for customer function modulpool MV45A
    V45A0004 Copy packing proposal
    V45E0001 Update the purchase order from the sales order
    V45E0002 Data transfer in procurement elements (PRreq., assembly)
    V45L0001 SD component supplier processing (customer enhancements)
    V45P0001 SD customer function for cross-company code sales
    V45S0001 Update sales document from configuration
    V45S0003 MRP-relevance for incomplete configuration
    V45S0004 Effectivity type in sales order
    V45W0001 SD Service Management: Forward Contract Data to Item
    V46H0001 SD Customer functions for resource-related billing
    V60F0001 SD Billing plan (customer enhancement) diff. to billing plan
    Please check this and post .
    Regards,
    Madhu.

  • HOW TO Change behaviour of attendance type

    Hi guys,
    I have a question for you:
    - I have an attendance "9500 Extra Time", for overtime, introduced through IT 2002, which belongs to attendance type "O" (Overtime). When time schema is executed, attendances of this type are added to table TIP (6th time pair):
    Inizio   Fine     1  P  Cl  Ct  V  VR    CI   CF   V  O  I  PinI  PinF  PT    ALP  C1    AB  Numero
    00.0000  05.8833     0  01  00  -  0000                                                        5,8833
    05.8833  06.0000     1  01  00  P  0310  P10  P20     E                 0001                   0,1167
    06.0000  11.8333     1  02  00  P  0110  P10  P20     E                 0001                   5,8333
    11.8333  12.3333     1  02  00  P  0110  P10  P20     E                 0001                   0,5000
    12.3333  14.0000     1  02  00  P  0110  P10  P20     E                 0001                   1,6667
    14.0000  15.0000  0  3  01  00  O  0330               P                                        1,0000 <----
    14.0000  15.2500     1  01  00  P  0310  P10  P20     E                 0001                   1,2500
    15.2500  48.0000     0  01  00  -  0000                                                       32,7500
    But after that, when function "P2005" is processed, this time pair overwrites overlapped pair, and time pair type is changed to "M":
    Inizio   Fine     1  P  Cl  Ct  V  VR    CI   CF   V  O  I  PinI  PinF  PT    ALP  C1    AB  Numero
    00.0000  05.8833     0  01  00  -  0000                                                        5,8833
    05.8833  06.0000     1  01  00  P  0310  P10  P20     E                 0001                   0,1167
    06.0000  11.8333     1  02  00  P  0110  P10  P20     E                 0001                   5,8333
    11.8333  12.3333     1  02  00  P  0110  P10  P20     E                 0001                   0,5000
    12.3333  14.0000     1  02  00  P  0110  P10  P20     E                 0001                   1,6667
    14.0000  15.0000  0  3  01  00  M  0310               P                                        1,0000 <----
    15.0000  15.2500     1  01  00  P  0310  P10  P20     E                 0001                   0,2500
    15.2500  48.0000     0  01  00  -  0000                                                       32,7500
    As you can see, one hour of the time pair 14.00-15.25 is overwritten by the presence "9500 Extra Time" This is all rigth.
    But I have other attendance "9000 Formation", which belongs to attendance type "B". This is the table TIP just before "P2005" execution:
    Inizio   Fine     1  P  Cl  Ct  V  VR    CI   CF   V  O  I  PinI  PinF  PT    ALP  C1    AB  Numero
    00.0000  05.8833     0  01  00  -  0000                                                        5,8833
    05.8833  06.0000     1  01  00  P  0310  P10  P20     E                 0002                   0,1167
    06.0000  11.8333     1  02  00  P  0110  P10  P20     E                 0002                   5,8333
    11.8333  12.3333     1  02  00  P  0110  P10  P20     E                 0002                   0,5000
    12.3333  14.0000     1  02  00  P  0110  P10  P20     E                 0002                   1,6667
    14.0000  15.0000  0  3  01  00  B  0330               P                                        1,0000     <----
    14.0000  15.2500     1  01  00  P  0310  P10  P20     E                 0002                   1,2500
    15.2500  48.0000     0  01  00  -  0000                                                       32,7500
    And after "P2005" execution. There is not overwriting in this case:
    Inizio   Fine     1  P  Cl  Ct  V  VR    CI   CF   V  O  I  PinI  PinF  PT    ALP  C1    AB  Numero
    00.0000  05.8833     0  01  00  -  0000                                                        5,8833
    05.8833  06.0000     1  01  00  P  0310  P10  P20     E                 0002                   0,1167
    06.0000  11.8333     1  02  00  P  0110  P10  P20     E                 0002                   5,8333
    11.8333  12.3333     1  02  00  P  0110  P10  P20     E                 0002                   0,5000
    12.3333  14.0000     1  02  00  P  0110  P10  P20     E                 0002                   1,6667
    14.0000  15.0000  0  3  01  00  B  0330               P                                        1,0000 <----
    14.0000  15.2500     1  01  00  P  0310  P10  P20     E                 0002                   1,2500
    15.2500  48.0000     0  01  00  -  0000                                                       32,7500
    Note: Function P2005 is called without parameters and IT 2005 is empty for this date and employee, so nothing is transfered.
    OK, THIS IS MY QUESTION:
    I need attendance "Formation" to work as attendance "Extra Time". I'm not going to change Formation's attendance type (B), so I want to know how can I change the behaviour of absence type "B" so overlapped time pairs are overwritten as now actually happens with attendance type "O".
    I don't know where to change this, could you please help me?
    Thank you a lot.

    Try to use TextField1.access = "readOnly";
    Jasmin

  • Change the backend doc type from PR to PO in BADI BBP_TARGET_OBJECTS.

    Hi,
    We have followed below approach for backend document type determination.
    1. A custom function module contains the logic to determine the backend document type of a Shopping cart line item. THis function module, performs many checks and hence cannot be called in any BADI that is executed in Foreground.
    2. I am using BADI BBP_TARGET_OBJECTS to change the follow document type by calling the custom function module.
    Issue here is, if the backend document type of a line item is Purchase requisition (2) by SAP standard, and if I try to change it to Purchase order, it gives run time error and ends up in creation of Purchase order.
    After further investigation I found that this line item (with default backend doc type as 2) has a desired vendor. If we change the desired vendor of this line item to fixed(To Partner function 19 from partner function 39), it allows us to change the doc type from Purchase requisition to purcahse order in BADI BBP_TARGET_OBJECTS.
    But changing the partner function is possible only in BBP_DOC_CHANGE BADI, and I cannot call the custom function module there, as it may impact the performance.
    Is there any other way, I can change the partner function in any of the BADIs called in background?
    Or Is there any way by which I can change the backend document type from PR to PO in BBP_TARGET_OBJECTS?

    Hi Parab
    if you swaping 39 to 19 viadoc change badi
    REQUESTER has a control on Purchase ORDER Vendor and BUYER lost a control so your business has to decide.In this case procurement department lost their control.
    Fixed vendors are like inforecord and contract negotiated for best price ..
    Muthu

  • How do store a time type field in a database table?

    We added a UDF of time type.  SQL Server says its a small integer.  After I pull the time off a date, I convert it to an integer.  For example, I convert 6:00 AM to 600.  When I try to store 600 in the field, I get a type mismatch exception.  What am I doing wrong?

    Adele,
    Thanks a bunch!
    Your code was syntactically incorrect but it moved me in the right direction.  Here is the code I ended up with:
    DateString = DateIn.ToString("yyyyMMdd HHmm")
    Time = Date.ParseExact(DateString, "yyyyMMdd HHmm", system.Globalization.DateTimeFormatInfo.InvariantInfo)
    Then update the Time field with the Time variable.
    This does the trick.  It looks like it is only necessary to save a date data type in a time type field and only the time piece of it is saved.
    Thanks again,
    Mike

  • How to track changes in text [column type]  changes in MDM

    Hi,
    How to keep track changes in Text[column type] in MDM tables.Is it the only way that I have to declare it as Name field?

    Hi,
    You keep track of changes for a field by enabling change tracking for that field in MDM.  This functionality is available in the MDM Console. 
    For more information  please have a look at the MDM Console Reference Guide -> Part 4: Repository Maintenance -> Other System Tables -> Change Tracking Table
    The MDM Console Reference Guide can be found in http://service.sap.com/instguides -> SAP NetWeaver -> Release 04 -> Operations -> SAP MDM -> MDM 5.5 SP02 - Console Reference Guide
    Hope this helps,
    Richard

  • Change behaviour of attendance type

    Hi guys,
    I have a question for you:
    - I have an attendance "9500 Extra Time", for overtime, introduced through IT 2002, which belongs to attendance type "O" (Overtime). When time schema is executed, attendances of this type are added to table TIP (6th time pair):
    Inizio   Fine     1  P  Cl  Ct  V  VR    CI   CF   V  O  I  PinI  PinF  PT    ALP  C1    AB  Numero
    00.0000  05.8833     0  01  00  -  0000                                                        5,8833
    05.8833  06.0000     1  01  00  P  0310  P10  P20     E                 0001                   0,1167
    06.0000  11.8333     1  02  00  P  0110  P10  P20     E                 0001                   5,8333
    11.8333  12.3333     1  02  00  P  0110  P10  P20     E                 0001                   0,5000
    12.3333  14.0000     1  02  00  P  0110  P10  P20     E                 0001                   1,6667
    14.0000  15.0000  0  3  01  00  O  0330               P                                        1,0000 <----
    14.0000  15.2500     1  01  00  P  0310  P10  P20     E                 0001                   1,2500
    15.2500  48.0000     0  01  00  -  0000                                                       32,7500
    But after that, when function "P2005" is processed, this time pair overwrites overlapped pair, and time pair type is changed to "M":
    Inizio   Fine     1  P  Cl  Ct  V  VR    CI   CF   V  O  I  PinI  PinF  PT    ALP  C1    AB  Numero
    00.0000  05.8833     0  01  00  -  0000                                                        5,8833
    05.8833  06.0000     1  01  00  P  0310  P10  P20     E                 0001                   0,1167
    06.0000  11.8333     1  02  00  P  0110  P10  P20     E                 0001                   5,8333
    11.8333  12.3333     1  02  00  P  0110  P10  P20     E                 0001                   0,5000
    12.3333  14.0000     1  02  00  P  0110  P10  P20     E                 0001                   1,6667
    14.0000  15.0000  0  3  01  00  M  0310               P                                        1,0000 <----
    15.0000  15.2500     1  01  00  P  0310  P10  P20     E                 0001                   0,2500
    15.2500  48.0000     0  01  00  -  0000                                                       32,7500
    As you can see, one hour of the time pair 14.00-15.25 is overwritten by the presence "9500 Extra Time" This is all rigth.
    But I have other attendance "9000 Formation", which belongs to attendance type "B". This is the table TIP just before "P2005" execution:
    Inizio   Fine     1  P  Cl  Ct  V  VR    CI   CF   V  O  I  PinI  PinF  PT    ALP  C1    AB  Numero
    00.0000  05.8833     0  01  00  -  0000                                                        5,8833
    05.8833  06.0000     1  01  00  P  0310  P10  P20     E                 0002                   0,1167
    06.0000  11.8333     1  02  00  P  0110  P10  P20     E                 0002                   5,8333
    11.8333  12.3333     1  02  00  P  0110  P10  P20     E                 0002                   0,5000
    12.3333  14.0000     1  02  00  P  0110  P10  P20     E                 0002                   1,6667
    14.0000  15.0000  0  3  01  00  B  0330               P                                        1,0000     <----
    14.0000  15.2500     1  01  00  P  0310  P10  P20     E                 0002                   1,2500
    15.2500  48.0000     0  01  00  -  0000                                                       32,7500
    And after "P2005" execution. There is not overwriting in this case:
    Inizio   Fine     1  P  Cl  Ct  V  VR    CI   CF   V  O  I  PinI  PinF  PT    ALP  C1    AB  Numero
    00.0000  05.8833     0  01  00  -  0000                                                        5,8833
    05.8833  06.0000     1  01  00  P  0310  P10  P20     E                 0002                   0,1167
    06.0000  11.8333     1  02  00  P  0110  P10  P20     E                 0002                   5,8333
    11.8333  12.3333     1  02  00  P  0110  P10  P20     E                 0002                   0,5000
    12.3333  14.0000     1  02  00  P  0110  P10  P20     E                 0002                   1,6667
    14.0000  15.0000  0  3  01  00  B  0330               P                                        1,0000 <----
    14.0000  15.2500     1  01  00  P  0310  P10  P20     E                 0002                   1,2500
    15.2500  48.0000     0  01  00  -  0000                                                       32,7500
    Note: Function P2005 is called without parameters and IT 2005 is empty for this date and employee, so nothing is transfered.
    OK, THIS IS MY QUESTION:
    I need attendance "Formation" to work as attendance "Extra Time". I'm not going to change Formation's attendance type (B), so I want to know how can I change the behaviour of absence type "B" so overlapped time pairs are overwritten as now actually happens with attendance type "O".
    I don't know where to change this, could you please help me?
    Thank you a lot.

    Hi Gurus,
    Thanks for the reply,
    I have change text through KL02,but when i enter again in KL02,the system shows:
    Act type  COAr  Short Text   Language  Valid from   to
    LABOR    9000   Labour        EN           1.4.07        31.3.99
    Hence it is still showing LOBOR but in short text it is coming as "LABOUR"
    Pl advise,how i can change "Act Type Col" and put Labour in said column.
    Regards,
    Samar

  • Time type Initialization based on financial year instead of calendar year.

    Hi All,
    I'm facing this problem. By using time type i'm capturing the no of worked days for a calendar year. This Time Type is used for calculating Privilege Leave which will be divided by 20 in the year end for Quota calculation. But when I run PT60 for the period 31.03.2014 to 01.04.2014. The Time types are automatically getting Initialized.
    Here Time Evaluation is running based on financial year not as calendar year ? How to change the same to calendar year.
    Already I have searched few solution here. As per the below link
    PT60 generating for financial year but not for calendar year . But i'm facing the same issue.
    Please suggest me the solution for this.
    Regards
    Jagan

    Hi Vivek and sikandar,
    Thanks for the immediate response.
    The Time evaluation is running for Financial year (Apr - mar). But I need it to be run for Calendar Year. I gave PL Quota Time Type as an Example. But its happening to all the Time types.
    Pls suggest me how to run Time evaluation for calendar year.
    Please see the screenshot below (Time Type 9t01, 9t78, 9t80)
    All the above three time types are getting initialized on April, but i want this to happen on 1st Jan.
    I'll share my PCR if needed.
    On 31.03.2015
    On 01.04.2015
    Thanks and Regards
    Jagan

  • How to change the font and type in the front panel

    Can you tell me how to change the font and type in the front panel if i want to make it looks more beautiful.
    1110340040

    Hi there,
    You can change the font size and type as shown below:
    - Ee Lim -
    See that button on the left side of this post...
    If you feel my post is helpful, all you need is just (at most) 2 seconds to click that button, to show your appreciation. Thank you~~

  • CO01 - system changes sch.start time given by the user (fwd sched., no cap. check, no shifts defined)

    Dear Experts,
    I am facing a very strange issue. Whenever I am trying to manually create and schedule a discrete production order  in ECC 6.0, with 1-forward scheduling (in CO01 transaction), by giving scheduled start date and time and pressing the "Schedule" button; the system changes the start time given by me (the date remains) and executes the scheduling with that start time.
    For example, when I want to produce 12072 PCs, and I give 08:00 as shceduled start time, the system changes it to 15:59, adds the operation times correctly and defines the 'correct' scheduled end date (again, with fwd scheduling type!).
    There is some logic on how the system changes the scheduled start time given by me. Below a certain production quantity, the issue doesn't come up, lead time scheduling is carried out, as it is expected. So the problem only occurs, when the order qty exceeds a certain limitation. In that case the order cannot be scheduled to a certain time phrame (between 07:59 and 15:59), so the system changes the scheduled start time given by me (whenever the order falls into the mentioned period). Depending on the order qty the mentioned period (to which the order cannot be scheduled) is changing.
    I made the following checks in the system:
    production calendar is set correctly, it is not blocking the production
    all the applied work centers are available from 00-24 hrs
    no shifts has been defined on any of the WCs, production is enabled in 00-24 hrs
    there is no other production scheduled on any of the work centers, capacity load is 0% on all of them, as it has been checked in CM03
    order scheduling was performed with '1-forward' scheduling type
    anyway, capacity check is switched off in the system
    formulas on the work centers are all correct, the processing time calculated based on them is also correct (No queue, wait, setup, etc. times are set in the system, we are only using processing times.)
    no error messages
    As far as I know, in the above case lead time scheduling must be carried out, the system is simply 'not allowed' to change the start date given by me, just add operation times to the start and define the scheduled end date.
    Thank you in advance,
    T

    Jiaul,
    please find the screenshots.
    1.Mark for Relevant finite scheduling in scheduling or capacity tab - yes
    2.Can be used for multiple operation - yes
    3.Capacity Planner Group set up - yes
    Caetano,
    in my case the order scheduled start date is exactly the same as the operation start date. The problem is that this date cannot be manually scheduled to a certain time interval, the system changes the scheduled start date specified by me. (Like there was a "blocked period".)
    Thank you,
    T

  • Event on changing Look and Feel

    I want to know what event is fired when I change Look and Feel.
    Thanks,
    Pati

    Ideally you'll be using the UIManager.setLookAndFeel() to change the installed LookAndFeel. In the UIManager, the installed LNF is bound to a JavaBeans property using the SwingPropertyChangeSupport with the key: "lookandfeel". Any time this changes, a PropertyChangeEvent will be fired to the PropertyChangeListeners registered with the UIManager. You can simply add a PropertyChangeListener to the UIManager and listen for events that are bound to that particular property, such as...
        UIManager.addPropertyChangeListener( new PropertyChangeListener() {
            public void propertyChange( PropertyChangeEvent e ) {
                if( "lookAndFeel".equals( e.getPropertyName() ) ) {
                    System.out.println( "look and feel changed" );
        });The event encapsulates the new value and the old value so you can do whatever you need with that information.
    I used an anonymous inner class mostly as an example - You may need to consider a cleaner design for your purposes.
    Hope this helps!
    Matt

  • How to change DTMF RFC2833 payload type to 101 or 127

    Hi,
    We are using Flash Media Gateway 4.5, and we would like to change the DTMF payload type from 127 to 101 for RFC2833.
    as of now, I couldn't find any configuration settings from the documents. Looks like this is a discontinued product but any help is much appreciated.
    Thanks,
    Uttran I

    Hi Thomas,
    according to your first question: Why does this matter to you? As I already wrote in another thread:
    According to the XML namespace declaration the prefixes are just internal aliases with no external meaning.
    E.g. <ns1:abc xmlns:ns1="http://www.sap.com" /> and
    <iLikeLongPrefixes:abc xmlns:iLikeLongPrefixes ="http://www.sap.com" /> are totally equivalent according to the XML namespace specification.
    Therefore, everyone (human or machine) who produces a program can choose the prefixes as he wants. Moreover, he may change the rules for creating these prefixes without being incompatible.
    Consequently, the namespace prefixes should not be important for you.
    Greetings
    Stephan

  • Changing Look & Feel of Detailed Navigation

    Hi Gurus
    I want to change Look & feel (e.g. font size, font type, background color etc) of Detailed Navigation in portal.
    Please can anyone let me know which PAR file or files I need to modify for that?
    Thanks,
    Vaibhav Srivastava

    hi Vibhav,
    I think the below article will help you to get the exact par file, how to modify and see the changes in portal.
    -it is my own article:)
    [https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60caa539-8e51-2a10-0e83-e0a68ab3f5aa|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/60caa539-8e51-2a10-0e83-e0a68ab3f5aa]

Maybe you are looking for

  • PSE 6 Blank welcome screen and nothing else

    Started suddenly, no issues previously. Installed on an iMac running 10.5.8. Blank welcome screen and nothing else. Tried reinstalling... nothing is working.... help!

  • Material master lock authorization

    Hi, I would use the button lock material to lock fields of a material in material master. Do you know what are authorization for this so that I can assign it only to some users? Best regards

  • My new ipod is showing that it is full but I have only loaded about 3gb

    My new ipod is showing that it is full but I have only loaded about 3gb

  • Order of photos

    How do I put the photos on the iPod in a particular order? I am using iTunes on Windows to synchronize the photos from a folder. They do not appear in alphabetic order on the iPod, which is what I would want. The intention to have a map on my iPod, s

  • How to prepare for DBA Interview

    Dear All, Sorry for posting this thread. But i need your suggestions to improve my skills. So kindly give me your suggestions and tips. What are the mail things i have to prepare. Thanks in advance. Moorthy.GS