Saving dialog default values with requirements

We frequently use a configuration file to log machine-dependent parameters (e.g., serial port configurations). This works great but the code I use is not universal and takes some time to implement and a lot of time to customize. I am writing a set of VIs to streamline the process. The challenge is, though, that I want this to work with a variable number of parameters and I want to be able to read the values into a dialog in which the controls are configured so that the user can only enter valid values for that specific control.
I am attaching a library that starts to do what I want, but it definitely isn't there! Since I can't change the limits of individual controls in the array, this won't work if the data typ
es or limits vary within the parameter list.
A quick search of the Developer Zone didn't yield an answer that does quite what I want. Does anyone know of a good way to do this?
Attachments:
dialog_test.llb ‏262 KB

When you come across a problem that needs fixing, there are always three possible courses of action:
1. Dig in and fix it.
2. Decide that it's more trouble than its worth and abandon the idea.
3. Wait for a bit for the technology to get better knowing that in the long run the wait will save you time.
From what you are describing you might be in a situation where #3 is a good approach.
I have built a lot of configuration editors and as you have pointed out there is a limit as to how much commonality you can introduce. What you really need is the ability to dynamically call front-panel components--like you can call VIs using VI Server. Unfortunately LV can't do that--yet...
I have seen a demonstration of something called sub-panels (new for V7) that
will revolutionize the process of creating this type of application. It just might be worth it to wait a bit.
Mike...
Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion
"... after all, He's not a tame lion..."
Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

Similar Messages

  • Set Column Default Value with Workflow

    How to set Column Default Values using a workflow.
    <input alt="Mark as abusive!" id="ctl00_m_g_e11f6e6d_9b4b_42d7_97fb_486623821166_ctl12_ctl03_abuseButton_710" name="ctl00$m$g_e11f6e6d_9b4b_42d7_97fb_486623821166$ctl12$ctl03$abuseButton_710" src="http://www.sharepointforum.nl/_layouts/images/TOZIT/SharePointForums/abuse/abuse.png"
    style="border-width:0px;" title="Mark as abusive!" type="image" />
    15 seconds ago
    After I add an item including metadata in a List, a Workflow starts to create a Library Folder with rootfolder, subfolder and sub-subfolder names based on the List first three column values. 
    I like that the unique created library subfolder automatically receives several additional List column values in its Column Default Value with that workflow.
    After done, documents added to this subfolder are automatically populated with Metadata from the parent Subfolder.
    Workflow standard function can be used  to populate the folder Column Value to this but not the Column Default Value.
    Does someone has a solution how to set Column
    Default Value using a workflow?
    I like to use such workflow in Sharepoint 2010.
    Thank in advance.

    Hi,
    I think it cannot be achieved by workflow.

  • Crystal Reports scheduling disregard the default values and requires prompts to be answered every time.

    Hi guys,
    When scheduling a Crystal report, the page to configure the prompt answers does not have any prompts answered by default - they all appear as "[EMPTY]". This means that any required prompts must be answered during configuration of the alert schedule. Since prompt is required and the default value (which is equivalent to not answering the prompt) is not available in the selection list.
    Is there any way around it?
    Ideally I would like the prompts to keep the default values, so I could schedule the report for all the prompt answers (Whole list of value) instead of having at least one prompt value.
    Is there any configuration in crystal reports or on database side that could help me resolve the issue.

    First off, Thank you for your replies!
    Rabeb SLIMANI, we can't use universes by user requirement. If we could, it would have to be through IDT (Information Design Tool) but, nonetheless, the users want a direct BICS connection between BEx and WebI.
    Victor Gabriel Saiz Castillo, we can't do that because the users want to choose between accessing the published instances or refreshing the reports on demand.
    The way i see it, it would take a second set of BEx query + WebI report to provide both functionalities (one for ready for input, another for not ready for input). Am I correct?
    @Sathish Kumar (sorry, i can't tag you right), i was checking with the BW team and we already have the logic for If left null, populate with Customer Exits.
    But they are currently mandatory, so we will change them to optional and test the behavior.
    If you have any other ideas, they are more than welcome! I will keep you posted on the outcome!
    Best regards,
    Francisco

  • Personalization default-value with readonly (p13n)

    Hello,
    I have a simple application with a field. I'm starting the application sap-config-mode=X and would like set an inputfield with a default-value and as readonly.
    I'm tiping in the inputfield (e.g. "XXX") and start the personalization via right mouse click.
    Value: Specify Default
    Read-Only Access: Yes
    If I close the window, the field is readonly and filled with "XXX".
    But, If I restart the application the field is readonly and empty.
    It's a bug or a feature?
    If I set the Read-Only Access = No Personalized and restart the application the default value was loaded.
    Thanks

    Hi,
    the value "XXX" should ideally be saved as a default in the input field.
    it would be saved under implicit personalization.
    I have alternatively suggested a way which would come under explicit personalization.
    You can monitor the same by running the application of "WD_ANALYZE_CONFIG_USER" web dynpro component and enter youe username and you can view what data is personalized against the entered username.
    Regards
    Anurag Chopra

  • Set default value with mouse click?

    Hi guys,
    I'm new enough to LabVIEW, and indeed this forum, so I hope you can help. I'm guessing it's a simple problem, but I can't figure out how to do it.
    I've got a cRIO taking in 4 analog voltages. Each voltage is from a linear potentiometer which is measuring suspension displacment on a Formula Student race car.
    I have a simple formula set up to convert input voltage to displacment. I've set up a table of inputs which allows me to set maximum, minimum,(from previous sensor calibration) and "stationary" value of each sensor.
    The "stationary" value is what the sensor should be reading when the car is stopped. This is then used as a baseline for either positive or negative displacments.
    My problem is that each time a different driver gets in the car, the susspension is adjusted, or fuel is added, the "stationary" value will be different. I then have to manually set the stationary value back to whatever the current value is when the car is stopped, press "make current value default", and save the VI before continuing.
    What I would like, is a "calibrate" button which I can press that sets the "stationary" value to whatever the current input voltage is. This way, I wouldn't have to reset 4 values each time the car is modified.
    If you have any ideas on how to do this, please let me know.
    I'll attach my VI once I get back to the laptop where it is saved!
    Thanks,
    Kevin Irving
    Solved!
    Go to Solution.

    Kevin,
    As you have discovered you cannot change the default values on a running VI.
    The best way to do what you want is to use a configuration file.  There is a set of VIs specifically designed for that purpose on the File I/O palette.  When the user presses the "calibrate" button, the values are saved to the file. When the program starts it reads the file and sets the controls to the values in the file.  You can even keep different sets for each driver, if the data is consistent enough.
    Read the detailed help files for the configuration VIs and look at the examples.  These will show you how to get started.
    Lynn

  • Fill default value with SQL query or by an other way

    Hello everyone,
    I use Jdeveloper 11g and Weblogic.
    when I click on create button, I would like fill id_employee field automatically with the current user. I think there is a possibility in default value but I don't know how.
    My query is: SELECT Employee.ID_EMPLOYEE FROM Employee WHERE Employee.EMPLOYEE_NAME = :userName
    userName is a bind variable with this value: #{facesContext.externalContext.userPrincipal.name}
    If there is an other way I accept. Maybe with createwithparams, I tried but I didn't success.
    Please help me, I spent 2 weeks for this small problem.
    Thank you
    Regards

    Hi,
    if using ADF BC, you the create with params operation of the Viewobject to create a new row. On the created action binding, use the right mouse button to create a "NamedData" entry. Set the name of this entry to the name of the attribute you want to add teh default value to. In the NDValue field use EL to reference the authenticated user
    Frank
    Ps.: Your query is not a create statement, so I hope you are not confusing usecases here

  • How to set default values with parameter ID EVO

    Hi I need to set price adoption as ''do not copy'' in purchasing default values for buyer(OMFI) and need to assign this default value to the user using the EVO parameter.
    I can not see the parameter ID in dropdown list in maintain user screen.
    Can any one help me in this regard?
    Thank you,

    Just addition to Charlie's suggestion, make sure that you put the same value as used while creating parameter ID. if EVO key is created with Z1 and you put z1 then it wont work, you must put the same value Z1.
    Regards
    Arif Mansuri

  • USOBT_C almost empty after changing default values with SU24

    After the implementation of OSS Notes 0001378328, 0001382895 and 0001404093 I performed a change in SU24 on the default values of authorization object (2nd tab) S_ALV_LAYO for all transactions involved.
    I filtered all transactions with default value u2018Yesu2019 for this object and selected all these entries and changed them to u2018Nou2019.
    When creating new roles afterwards I noticed that no objects were pulled in in PFCG and when checking table USOBT_C I noticed that, apart from the 328 records I changed to No for S_ALV_LAYO the whole table was empty! In the development client  there are now just 328 records in this table whereas in de acceptance client there are 233,124 entries!
    Could you please find out the following:
    -          How could this happen?
    -          What can I do to restore table USOBT_C?
    I reported this bug also on OSS but maybe someone of you has had the same experience and can share the causes and solutions.
    Thank you!
    Lodewijk Borsboom

    > > To read such a huge text in the above suggested notes may become tiresome of not ofcourse worthless.
    > What is the use of posting a list of links or randon OSS note hits, when you are not sure whether they are usefull or not?
    >
    hmm.... though I am not sure and agree with the raise of OSS message for this issue, but when I read these notes after reading the query I found them to be notified to op.
    > Lodewijk can do that simple search himself. I always assume that the person asking a question has done a search before hand...
    >
    Agreed again. But not sure of his search result. May be his string missed some of these notes and can help him to check the program errors rectified in couple of Notes in 2009. But of course I confess about the uncertainty of the exact solution from my side.
    > If it is a basic requestion and easy answer with a link, then I delete it. It has no value to SDN. You are just attempting to do someone else's work for them, and that it not the case here.
    >
    > Please read the question carefully and answer specifically.
    >
    read and then posted the message. Also as I was not sure of solution to this particular error I surrendered in advance [mainly for you ]. Still I would like op to view the following notes on SAP Default value maintenance and if he has already done then that is great and I am just not helping with proper suggestion.
    [Note 1287998 - Problems when you maintain default authorization values|https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/sapnotes/index2.htm?numm=1287998]
    [Note 1378328 - SU24: Error after deleting authorization default values|https://websmp230.sap-ag.de/sap%28bD1lbiZjPTAwMQ==%29/bc/bsp/spn/sapnotes/index2.htm?numm=1378328]
    Note 1382895 - SU24|Default value maintenance for authorization objects
    Note 1235912 - SU24|Display and maintenance of authorization default values|
    Hi Lodewijk,
    Did you check the change header for USOBT_C in CDHDR and CDPOS? Also let us updated with the reply from OSS please.
    regards,
    Dipanjan

  • Setting Default value with SQL Query as Data Model

    Hi All,
    I am developing report based on SQL query.date set as 'SQL Query'. I have created two params start-date and end-date. I am fetching records from database between these two dates.
    I want to populate sysdate as a default values. I do not want to use datatemplate approach i mean using beforeReport trigger.
    Thansk,
    Vara

    Hi Vara,
    To set the default value for one of your parameters to SYSDATE you need to enter:
    {$SYSDATE()$}
    in the Default Value text box
    Is this what you require?
    Cheers
    Andy

  • MySQL Default Values with Updates

    This is a bit off topic, I'm hoping someone can help me here so I don't have to join the MySQL email list.
    I would like to update a row in a table to use the mysql default values. So if TableA has FieldA which had a default value of 1, and now that value is 2, I would like to change this back to 1. Is there an easy way to do this?
    Is there a command in MySQL I can use? Something like:
    update TableA set FieldA = DEFAULT
    Thanks for your time.
    Tyson

    Not according to the documentation (of version 3, anyway). You could delete the record then insert it, not mentioning the field you want to set to default.

  • Error while saving some default value in excel file

    Hi,
    I have been trying to accomplish a very simple task. I am trying to save values used in “PARAMETERS DESCRIBING PATH” of  "Photo_Diode_N_Motors_DAQ" and want to reload the same values in “PD_Display_From_Spreadsheet”. There is a function named “Display to Motor” in “PD_Display_From_Spreadsheet” which will use four of those values namely y_intial, y_step_size, z_intial, z_step_size. Needless to say that I am not able to do successfully. Each time I am trying to run, I am getting following error:
    “Error 1 occurred.
    Possible reason(s):
    LabVIEW:  An input parameter is invalid.
    NI-488:  Command requires GPIB Controller to be Controller in Charge.”
    However, if I remove the part where I am saving those values, it works fine.
      You may like to have look at frame 1 of "Photo_Diode_N_Motors_DAQ" as well as use of “Display to Motor” in “PD_Display_From_Spreadsheet”.
    Thanks,
    Dushyant
    Attachments:
    Program.zip ‏418 KB

    Hello,
    No problem about the help, I am glad to have helping you get rid of the problem! I think I see the dialog your are referring to now.  Is it the one that asks the user to replace the file?  If so, this is because when the file already exists, the default behavior of the File Open/Create/Replace funtion (used inside the Write to Spreadsheet File.vi) is to show "advisory dialogs."  You can turn those off though, if you'd like, by wiring the boolean input within the Write to Spreadsheet File.vi.  I have attached a version of that Write to Spreadsheet File with Advisory Selection.vi called, and used it in a new version of the test VI you sent.  Together, they give the behavior of writting a file you choose (say MyFile.txt) with the front panel control, as well as a file named with _new appended to it (say MyFile_new.txt).  By exposing the underlying advosory boolean, we can supress or expose such dialogs in all instances you wish.
    Was that the dialog problem?  Try the VIs attached in the zip file!
    Best Regards,
    JLS
    Best,
    JLS
    Sixclear
    Attachments:
    slightly modified VIs.zip ‏32 KB

  • Unable to create table with column default value with date interval

    Please help to create table with calculated date defaullt value:
    CREATE TABLE emp (
      birth_date  DATE  DEFAULT sysdate + interval '3' day NOT NULL
    or
    CREATE TABLE emp (
      some_date DATE,
      birth_date  DATE  DEFAULT some_date NOT NULL
    or
    CREATE TABLE emp (
      some_date DATE,
      birth_date  DATE  DEFAULT some_date + interval '3' day NOT NULL
    below syntax error:
    TT1001: Syntax error in SQL statement before or at: "+"

    I'm afraid this is not possible; as per the SQL Reference, TimesTen only supports 'constant expressions' for the DEFAULT clause and none of these are constant expressions.
    Chris

  • Setting default values with stored procedures

    I have a form that has Start Date and End Date text fields
    that I want to use to colect parameters to send to another page.
    How do I make these default to the first and last day of the
    current year? I know how to use the DATEADD and DATEDIFF functions
    to get the dates but when the value gets to the page it is 0. My
    data is stored in an SQL server.
    CREATE PROCEDURE [dbo].[sp_FirstDayOfCurrentYear] AS
    SELECT DATEADD(yy, DATEDIFF(yy,0,GETDATE()),0)
    GO
    When I run the in the SQL Query Analyzer it returns
    2006-01-01 00:00:00.000
    The command on the asp page is
    Type = Stored Procedure
    SQL = dbo.sp_FirstDayOfCurrentYear
    Variables: Name = @RETURN_VALUE Type = Integer Direction =
    RETURN_VALUE The remainder are blank.

    You'll need to edit the DW-generated code so your parameter
    is Empty instead
    of whatever default DW assigns (usually "" if you leave
    default blank).
    "mtsonic1971" <[email protected]> wrote in
    message
    news:e7rj9j$132$[email protected]..
    >I have a form that has Start Date and End Date text
    fields that I want to
    >use
    > to colect parameters to send to another page. How do I
    make these default
    > to
    > the first and last day of the current year? I know how
    to use the DATEADD
    > and
    > DATEDIFF functions to get the dates but when the value
    gets to the page it
    > is
    > 0. My data is stored in an SQL server.
    >
    > CREATE PROCEDURE [dbo].[sp_FirstDayOfCurrentYear] AS
    >
    > SELECT DATEADD(yy, DATEDIFF(yy,0,GETDATE()),0)
    > GO
    >
    > When I run the in the SQL Query Analyzer it returns
    2006-01-01
    > 00:00:00.000
    >
    > The command on the asp page is
    > Type = Stored Procedure
    > SQL = dbo.sp_FirstDayOfCurrentYear
    > Variables: Name = @RETURN_VALUE Type = Integer Direction
    = RETURN_VALUE
    > The
    > remainder are blank.
    >

  • Table editor problem with default value for column

    Hi there,
    I'm trying to use SQL Developer 1.2.1 on Ubuntu 7.10 (though I don't think the OS is relevant) and I'm running into a snag when trying to update table structures. If you go to edit the table to say modify a column name, and that column has a default value set, SQL Developer is encapsulating the value with brackets and quotes. When trying to save the changes, it complains about the default value being 4 chars too many for the column width. An example of this would be a currency code column of varchar2 (3) set with EUR as the default. SQL Developer changes the value to ('EUR') hence the error.
    Is there anyway to prevent this from happening?
    Cheers,
    Chris

    Could you please be more specific? In 1.2.1.32.40 I
    added the column COL1 VARCHAR2(3) with default value
    'EUR'. The data display field refreshed to show the
    default value, so I edited it in a couple of entries
    and comitted the change without problem. Then I
    renamed the column from the "Edit table" popup menu.
    Finally, I renamed the column from the "Rename
    column" popup menu, no problem either.Ah, you are correct. That does work. What I was trying is select tablename in the object browser, then right click on it and select "Edit" from the contextual menu. You are then presented with edit table dialog box. If you then select a column in that box you will see a column properties box. In that section you can change the name, default value, datatype et cetera. Note that your default column value which should just be EUR (or 'EUR' to denote that it's a string) is now ('EUR'). Once you try changing the name to of the column to something else and then click OK, you should then get an error complaining of "Invalid varchar2 default value" with a more specific message of "Default values size 7 is greater than the allowed 3"
    You have provided a work around, and thanks for that, but it would be nice to edit everything in the Edit table dialog box if you're modifying more than one column name. I'm tasked with cleaning up a bit of a messy database, and there are a good deal of columns to be renamed.
    Cheers,
    Chris

  • Saving default values

    hi
    can any one help me?
    i have a problem.i made a table which have some default value
    i..e
    create table tp(name varchar2(10),
    status char(1) default 'N');
    i have selected this column while creating block in front end.
    iam not entering any data in status but iam entering values in name column while saving.
    now the problem is the default value which is set on the table
    level is not saved.
    please answer.
    bye

    It depends how r u creating your form ?
    I have checked your prob. and made a form based on your table script.i didnt get any prob. when i pressed the default save menu button the default value with name column value saved normally.Actually when made a form & run it in status column the form automatically insert the default table value so no prob. at all.U can explain in detail how r u creating your form...
    Regards!

Maybe you are looking for

  • Wifi Sync wont work in itunes ios 6.1.3 ipod 4th gen

    hello i updated to the latest iOS and itunes and wifi sync wont work i ticked it in itunes and synced and my ipod under setting general itunes wifi sync and it says how to turn it on but i already did that i tried like everything i turned wifi on/off

  • Acroexch error in Word 2010 x64

    Hello, I had this error with a user yesterday inside her Microsoft Word 2010 x64: "The program used to create this object is AcroExch. That program is not installed on your computer. To edit this object, you must install a program that can open the o

  • Acrobat Locks up when applying redactions

    I have Adobe Pro. 9.2.  When I tell the program to apply the redactions I have made, it just sits and spins... I have to, eventually, right click on the instance in the task bar to close the program.  I installe updates, and it still does it.  Please

  • Define form as PDF/A

    Hi everyone I use the LiveCycle Designer to design a from. This form will be feeded with some data and freezed to a pdf file later. Now my question: Is it possible to define the compatiblity or file type as "PDF/A" in the designer? Our intention is t

  • Cross-platform links in ID CS3

    Hello all, here's the story. We have 4 Mac Users and 2 PC users working in In-Design CS3. (The Mac users have the whole CS3 Design Suite) The In-Design files are stored on a PC Server (2003). The image files are stored on a Mac Server (running Server