Make 2 values default in Z Report

Hi,
We want to make a Field as default in my Z Report.
For that i use default function for one values, but we have 2 values to insert in that field.
How can we make 2 values as default in field and also make non-changeable mode. means we want that user cann't change the values, inserted in that field.
Plz guide...

Try following Sample Code :
PARAMETERS:      p_todate LIKE sy-datum DEFAULT '20001220'.
* At Selection-Screen Output
AT SELECTION-SCREEN OUTPUT.
  PERFORM disable_to_date.
FORM disable_to_date.
  LOOP AT SCREEN.
    IF screen-name = 'P_TODATE'.
      screen-input = 0.
      MODIFY SCREEN.
    ENDIF.
  ENDLOOP.
ENDFORM.
Hope this helps.
Regards,
Chandravadan

Similar Messages

  • Invoke Node - Make current values default

    I have an issue similar to many postings regarding the use of an invoke node to set control values and then to make those values default in that I get an error message: "Error 1000 ( The VI is not in a state compatible with this operation)."
    The catch is that it is not all the time.
    I am trying to set up a configuration utility which allows configuration or modification of settings of channels and serial ports. This top level VI pulls values from a configuration file using a mid-level VI which, in addition to loading the configuration file, also calls a further sub VI which initialises and sets as default front panel objects on a number of VI's using Invoke Nodes. Thus there is a heirachy of three VI's
    with the lowest level VI doing the Invoking.
    The only time I get the Error 1000 is when I try to run everything from the top level VI. From any lower level the VI's run with no problems and the defaults are set as desired.
    Any suggestions as to the origin of the problem?
    Ross.

    To complement the other answer that explains why it not always works, I would again and again stress that !! make current values default !! is not the way to go when you want initial values to be changed.
    For changing startup values you should use .ini files !
    greetings from the Netherlands

  • VI to make current values default

    Hi, I've used this website:
    http://www.originalcode.com/SavDef.htm  to create a method that
    will call the "Make current values default" at the end of my program.
    Here are my Save defaults.vi and Save defaults core.vi
    The latter works but the former gives me a bad input error... I admit I
    am not advanced enough in Labview to fully understand these two
    programs so I just built them both visually from the website, as I need
    my larger program to save the current defaults when it's done running.
    Thanks for any help!
    Attachments:
    Save defaults.vi ‏37 KB
    Save defaults core.vi ‏35 KB

    It's difficult to explain (and unfortunately I don't have much time)..  but the 'Set Control Value' methods in the Save Defaults.VI  are actually setting the values for the controls in the Save Defaults Core VI.  You instead had constants.  I changed these to Controls and named them accordingly (i.e., "occurrence" and "VI to save").  See attachments.
    I am guessing "Relative position.vi" is your VI where you wants the defaults to be saved.  So, you will add the Save Defaults VI as a sub VI in this VI.  You do not have to explicitly give its path anywhere as that is obtained from the call chain. 
    I have not tested this.. but it should work now.  You will have to rename these to the original names, including spaces, etc.  (or change the names on the diagrams).
    Hope this helps.
    -Khalid
    Message Edited by Khalid on 11-15-2005 01:51 AM
    Attachments:
    Savedefaults_1.vi ‏38 KB
    Savedefaultscore_1.vi ‏36 KB

  • Reversing the Make Current Values Default command

    Hi,
    I was working with a labview program this evening and had been using the 'Reinitialize all to default' command under the operate menu to clear all of the waveforms on my screen.  However, I accidentally chose the 'Make current values default' command and cannot erase what shows up in the waveforms.  I am sure there is a simple fix to my problem but I couldn't figure it out.  I tried rewiring parts of my block diagram do exclude the waveform graphs with the hope that the waveforms would go away but realized that the graphs weren't wired so nothing was going to change.  Any help would be appreciated.
    Thank You,
    bsteinma
    Solved!
    Go to Solution.

    There are a few simpler ways than closing and reopening the VI.
    If you realized the mistake right (or soon) after you did it, a ctrl+z will undo the operation and you have your old defaults back.
    If you are past that stage, a simple "menu...file...revert" will revert the VI to the last saved version. No need to exit and reload.
    If you accidentally saved it with the new defaults, "right-click the graph...data operations...clear graph", make default, save VI again.
    Good luck!
    LabVIEW Champion . Do more with less code and in less time .

  • Make current value default - Undo action

    Hi,
    A simple question - when selecting with the right mouse button a control and pressing "Data Operations/Make Current Value default" how I can undo this operation? Imagine I set some control default value to something and after some time I changed my mind and I want to return the control to its initial value (as it comes when you place the control from the pallete -  "Set to factory value").  I was not able to figure out how to do this. Cntr - Z is not an option since it works only in the close vicinity of the operation (you can't Cntr-Z this operation after 2-3 hours of intensive work over the VI). 
    For example I set numeric control default value to 22, after some time I want to return it to initial state (in this particular case the "factory value" is 0). Well, I can reinitialize the value to 0 but it's different from setting it to "factory" settings.
    Thank you

    I disagree with the idea that the default value is not a valuable tool.
    One example is let's say you have a subVI that had a hardcoded constant, but in new applications, this value is to be fed in from the outside - i.e., the constant is to become a control connected to the connector pane.  This subVI is in a common library so it needs to maintain compatibility with older applications.
    So you right-click on the constant to make it a control with the default value already set to the original constant value, connect it to the connector pane and set the connector to anything but required.  Now the new software has a connector to hook up to while, even though the old code will have to be recompiled, it won't break because, even though there is nothing wired to the control, the default value works just fine.
    I can think lots of other things, but that is among the most useful thing I've done with default values.
    [edit] Maybe I took things a little out of context? [/edit]
    Bill
    (Mid-Level minion.)
    My support system ensures that I don't look totally incompetent.
    Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.

  • Make current values default

    Hello ng,
    Can anyone tell me how to programatically make
    the current values of all controls on a panel the
    default values?
    Furthermore, can I set all controls back to their
    default state programatically?
    Thanks!
    Charlie Solomon
    Raytheon Systems Co.
    [email protected]
    Sent via Deja.com http://www.deja.com/
    Share what you know. Learn what you don't.

    Are we talking about LabVIEW 5 here? If so check out the VI Server
    functionality.
    In the Functions palatte under Application Control you can open a VI
    reference to
    a VI with Open VI Reference and then using the Invoke Node you have both
    "Make Current Values Default" as well as "Reinitialize All to Default
    available".
    These functions match exactly the same commands in the Operate menu.
    [email protected] wrote in article
    <7qkdgv$di6$[email protected]>...
    >
    > > For every control you want to set back to a default value, make a copy
    > > of it on your front panel, and set the default value. Now, when you
    > > want your control to go back to default, set it via a local variable
    > > ("Copy of Control A" -> 'Write' local of Control A
    >
    > Thank
    s Rick,
    > That would work for resetting controls to the same default values every
    > time...I should explain my app better: I have a subvi that pops up
    > a "setup" panel, allows the user to change some controls, then gives
    > the option to Save or Cancel. Save button should make the current
    > panel values the new default, so that next time the app is closed and
    > reopened these new values will be in place. Cancel button will undo
    > the changes and reset the controls back to the default state.
    >
    > Only thing I could find in the Help was some reference to
    > a "Make_Current_Values_Default" DLL, but no info on how to find it or
    > access it.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • How can I use "Make Current Values Default" Programmatically?

    When I use this method in a Invoke node, I get the error code 1000, then i can't use it in run mode?
    How can I modify the default values in a Built aplicattion, and save for the next time I load it?

    Hi,
    I've attached a small demo to show setting up the front panel control. The VI Change Control Value.vi is the one you run. Demo.vi has one control on the front panel whose value is setup by Change Control Value.vi. Just unzip the file, keeping the two VI's in the same folder. You don't need to open the Demo.vi.
    I've used this mechanism onlong with a config file when creating a Virtual Instrument Driver.
    Regards
    Ray.
    Regards
    Ray Farmer
    Attachments:
    demo.zip ‏23 KB

  • Make current values default in dll

    Hello,
    I build a dll in LV7.1. There is a function (.VI), where I have to open a reference of another VI, modify its default values on somel controls, then somehow save and close the reference.
    This means, that if I use another function of my dll, which function needs those modified values, the new values are used. Is there any way to do it?
    I tried to use the invoke node "Set Control Value" on a static VI reference of the VI.  The changes are made on the controls, but the lifetime of my changes ends, if the dll is unloaded. Then I have to do the changes again.
    I know, that a dll cannot be saved through a function of it, with new values. But what is the solution? Globals in the dll?
    regards
    Mitulatbati

    Well, the idea would be to read/write the file only once.... So you would create an FGV/AE to read the settings at the call of the first function of the dll, keep the values until the last call will use the FGV/AE to write the settings back to file.
    This change could possibly require a certain "setup" and "shutdown" routine in your dll which must be called from outside when using the dll. And it for certain creates issues if the dll is used without proper usage of those functions.
    Norbert
    CEO: What exactly is stopping us from doing this?
    Expert: Geometry
    Marketing Manager: Just ignore it.

  • Method " make current values default "

    hello
    I use method of "make defult" and it works well but I must build application this vi
    when I do this (tools ->build application ...-> installer setting) and  run
    show  this error :
    Error 7 occurred at Open VI Reference in mainpage.vi
    Possible reason(s):
    LabVIEW:  File not found. The file might have been moved or deleted, or the file
     path might be incorrectly formatted for the operating system. For example, use
     \ as path separators on Windows, : on Mac OS, and / on UNIX.
    I add configure.vi  as dynamic file and when I press configuration buttom and
     then press ok buttom show this error:
    Error 1044 occurred at Invoke Node in make defult.vi->mainpage.vi
    Possible reason(s):
    LabVIEW:  VI is locked.
    please guide me how I can use this method and also make installer file
    Thanks alot
    Faeze Zar

    I don't think you will need to upload your VI for this issue, but have a look at the bottom, the "attachment" section lets you select the files you want to upload.
    Message Edited by TiTou on 12-18-2007 08:51 AM
    When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!"
    Attachments:
    upload.png ‏15 KB

  • How to make the current value default programmatically

    How to make the current value default programmatically

    Open a VI reference to the desired VI and use invoke mode with method: "Make current values default".
    The VI cannot be running, so you need to set it from a different VI. (It also means, it cannot set itself.)
    LabVIEW Champion . Do more with less code and in less time .

  • How to make current value to default to all controls at once

    Choosing "Data Operation" -> "Make Current Value Default" to multiple controls requires a lot of clicking. Is it possible to do this with one click?
    Solved!
    Go to Solution.

    Yes.  If you select no controls, it says "Make current values default", and it does all the controls at once.  If you have a control selected, then it does only the selected controls.
    Reinitialize current values to default works the same way.  Select nothing, it does all the controls at once.
    Bob Schor

  • Minimum value/default

    I am measuring a current wich is sometimes negative and want to change the negative values to zero. I tried to choose "Data range" and set the minimum value to zero and then from the menu: Operate, make current values default. Then the value is zero as long as the program isn't running, but as soon as i start to run it, the values are negative again. What shoold I do to make them zero all the time when they are negative? (Of course, I don't want them to be negative when they are positive.)

    The data range attributes (like min/max/coerce...) just apply to the datasource - I think. To limit the display, you could maybe do some limit checking and coerce it programatically.
    A small VI should show what I mean. I am not sure if this is the only solution. You might post your question as well to the "Core" LabVIEW forum.
    Hope this helps
    Roland
    Attachments:
    LimitedValue.vi ‏26 KB

  • BW Query variable default value put in Crystal report variable question

    Why BW Query variable default value put in Crystal report variable for BO InfoView to open crystal report.
    I using Analyzer to open bw query,variables had default value ,but crystal report can't had variable default value ,and can't search variable  value.
    pho:
    [http://file.itpub.net/f/e38876ad4f6efb7e73980488e7d71f8d/4ae940e9/day_091029/20091029_2b04da1232144feba180OrB23SNvXtoT.gif/p/1.gif]
    [http://file.itpub.net/f/d93ddfe61e0eaf80429726c61f1a02ff/4ae940e9/day_091029/20091029_3211ffe04bf0302fbab5FRKnbwmH80p7.gif/p/BW_QUERY_Crystal.gif]
    Edited by: flying on Oct 29, 2009 8:20 AM

    I Know what to do .
    but Crystal report date variable value are Garbage characters "###".
    PHO:
    [http://file.itpub.net/f/39a8510104476707ae21c945db93ecba/4ae97949/day_091029/20091029_32dcbb7e7d99141483aesJ9KBJHXN0Kj.gif/p/2.gif]

  • How to display first row value returened from a query as checked as default in a report

    How to display first row value returned from a query as checked as default in a report
    Example
    Parameter 1
    Paramerter2
    ABD
    x(checked)
    Test
    DEF
    JMG
    Mudassar

    Hi Mudassar,
    The issue is caused by the order in which the parameters appear in the report data tab can be difference between our report execution and it failing. In other words, “Parameter2” is execution before parameter “A” due to this issue. We can adjust the parameter’s
    order to solve the issue.
    If “Parameter2” is parameter “A”, we cannot use that expression. Because fields cannot be used in report parameter expression, if we want to display the first value returned from a query as default value, we have to fill the “Specify values” text box with
    the specific value in Default Values dialog box.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • How to make slicer to remember selected values while moving from report to another

    I have Power View on SharePoint 2013 and OLAP Cube on SQL Server 2014 solution.
    1) I select slicer values and graphs are updated
    2) I move to next page on same Power View file and use slicers.
    3) I come back to original reports. My slicer valuers are empty.
    Is it possible to make slicer to remember selected values while browsing from reports to another?
    Ken
    Kenny_I

    Hi Kenny_I,
    This seems to a by design issue. The selected values within a slicer will be stored in Memory. When we go to another report, the memory will be released.
    Best Regards,
    Black

Maybe you are looking for

  • Is there a way to automatically refresh a webpage in Firefox 3.6.10?

    hi there, I am hoping the Firefox team can help with a small problem, is there a way of automatically refreshing webpages within Firefox 3.6.10 and 4.06 beta? We are building an interesting website at the moment and the client is using Firefox 3.6.10

  • ADC to DVI Convertor

    Hi I have just bought a MacPro to be used as a server for a small office but want to use an old Apple 17 inch LCD Studio Display with an ADC connector. I was surprised to find that the MacPro only has DVI ports...? Anyway will one of these ADC-DVI co

  • AQ Sort Order (priority,enq_time)

    HI I am trying to subscribe to a topic with Sort Order (priority,enq_time) using oracle.jms API.Payload type is an ADT generated from jpublisher.Though the same worked with Oracle.AQ API.After publishing i am updating the priority.But the subscribing

  • I can't download my email attachments!!

    Please help, I keep finding that a lot of my email attachments are not available to download. All I see on the header of my email's are things like: 2 Files   It only seems to be a problem with BT Yahoo. I use a Mac with OSX Lion. I have asked peop

  • HR - Travel Forms

    Hello, We have a requirement to Develop forms in HR - Travel Management. i need to develop for both ( Travel request , Travel expense ) , Can any one let me know is there any STANDARD Forms for these so that i can copy and make changes accordingly.