Question about using library items in forms

After a long time I am again returning to this perpetual fountain of Dreamweaver knowledge.
I am converting a site from AGL to DW. In AGL I used a separate template for the forms (there are over 10) and used "components" to create the different forms. Each form shared features with other forms but were not identical, all together 5 components. When I converted over to DW the 5 compnents were made into 5 "library items" but neither the form template or the library items work, by that I mean they do not update if I make a change.
Hence I want to make 5 new library items to use in the forms my question is this: when I choose an item to put in the form like a text field or radio button I always get this window.
Though I read the documentation I am still not really clear about the "style" option so I just choose "no label tag." What is this used for? Any examples of how it is used?
Regarding "position" before or after the item, what is this all about? I have been choosing "after form item" but I don't really know what the difference is and what advantages or disadvantages acrue from these choices.
Regarding "Access key" and "Tab index" I sort of have the idea of what it is about but an example of how they work in action would clear up any nebulosity.
But my real puzzle is with the following which pops up at the end when I am inserting a form items.
Since the library items are not separate forms in themselves I have NOT added the form tag because my reasoning is that when I make the new form templates it will have the requisite form tags. Am I correct in this line of thinking? Or do I have to add form tags every time I add form elements to a form? I really don't want to have to do the whole thing over again if I get it wrong. So if one of you kind souls could guide me in doing it right the first time I would really appreciate it.
I am using a MBP, OS X 10.6.8, DW CS6
BvL

To declare constants create a Package-Specification in a pll and deifne all your constants there, something like:
PACKAGE PK_CONSTANTS IS
  RC_SUCCESS CONSTANT PLS_INTEGER := 1;
  RC_FAILURE CONSTANT PLS_INTEGER := 0;
  RC_YEAR_DATA_NOT_FOUND := 50;
END;Then attach that pll to all your forms-modules, and use it like
IF rc = PK_CONSTANTS.RC_YEAR_DATA_NOT_FOUND THEN
END IF;A word about exceptions or errors: In my eyes its clearer (and in case of exceptions even better) to raise an exception than to hide it behind return-codes.

Similar Messages

  • Question about using constant variables in Forms

    As I am still very new to Forms, please forgive my ignorance if the answer to my question is very simple. I am trying to figure out how to use constant variables within my Forms application. For example, if I want to setup return code constants for the application (mind me, these are examples):
    RC_SUCCESS CONSTANT PLS_INTEGER := 1;
    RC_FAILURE CONSTANT PLS_INTEGER := 0;
    RC_YEAR_DATA_NOT_FOUND := 50;
    Then in a module I created, if I wanted to check the return code against one of the constants I would do:
    DECLARE
    rc PLS_INTEGER;
    BEGIN
    GET_YEAR_DATA('2000', rc);
    IF rc = RC_YEAR_DATA_NOT_FOUND THEN
    -- Do some error handling
    END IF;
    END;
    I know that you can declare constants within individual procedures or packages but I can't see to find information on how to do this globally for the application. I've read about using global variables within Forms but the CHAR data type only and the fact the value can be changed doesn't really fit for this purpose. Am I missing something? Is there a config file or something for the webserver that can be used to set these up??
    Any help would be appreciated.
    Thanks

    To declare constants create a Package-Specification in a pll and deifne all your constants there, something like:
    PACKAGE PK_CONSTANTS IS
      RC_SUCCESS CONSTANT PLS_INTEGER := 1;
      RC_FAILURE CONSTANT PLS_INTEGER := 0;
      RC_YEAR_DATA_NOT_FOUND := 50;
    END;Then attach that pll to all your forms-modules, and use it like
    IF rc = PK_CONSTANTS.RC_YEAR_DATA_NOT_FOUND THEN
    END IF;A word about exceptions or errors: In my eyes its clearer (and in case of exceptions even better) to raise an exception than to hide it behind return-codes.

  • Question about using calculations in PDF form

    I am creating an order form with fields using simple calcuation math (price field x qty field = subtotal field). My question is, if the quantity fields in the order form are blank I would like the subtotal and total fields to remain blank as well. However it shows and prints as 0.00. Is there a way to change that?

    Use this code as the custom validation script for that field:
    if (event.value == 0) event.value = "";

  • Question about using database links in Forms 10g

    I have a form that uses a database link for the "Query Data Source Name," i.e. it is set to some_view@some_db_link
    For some reason when I run a query using the DB link the query takes approximately 30 seconds. When I remove the link and go local the query takes about one second. Has anybody observed and addressed this issue before (without going local of course)?
    Thanks,
    Thomas

    Let me first say that it is never a good idea to use a db link in the data source. It is better to create a synonym in the database and use this as the data source. If the db link changes, you only have to do this in the database, without recompiling forms.
    create synonym some_view for some_view@some_db_link
    This may already solve your problem. If not, than see if the query is also slow in sqlplus. You may have a problem in your connection between the two databases.

  • Short questions about the focused item

    Hi,
    Short questions about the focused item:
    - How can I check if a specific item has the focus?
    - How can I check in my code which arbitrary item on my form has the focus?
    I need to know this because I have a checkbox and when it become unchecked, I disable an item on my form. But when this item has the focus, disabling this item will fail. Does anyone knows a solution for this problem?
    Greetz
    Eddy

    Hi Eddy!
    I suppose you should make an "event trigger" for the event "et_GOT_FOCUS" in your ItemEvent-handler and store there the item, which initiate that event. It can be like following:
    SBOApp_ItemEvent(FormUID, pVal, BubbleEvent)
    if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_GOT_FOCUS)
       strCurrItemInFocus = pVal.ItemUID;
    do someth..
    if (strCurrItemInFocus == "chbxMyCheckbox1")
       // disabling this item will fail
    else
       // disable an item on my form
    I hope it helps..

  • I have a question about using multiple ipads in our school.  Each of our teachers have a iPad and AppleTV in their classroom.  The issue is, with our classrooms so close in proximity to one another, is there a way to pair teacher

    I have a question about using multiple ipads in our school.  Each of our teachers have a iPad and AppleTV in their classroom.  The issue is, with our classrooms so close in proximity to one another, is there a way to pair teacher #1 iPad to its AppleTV without effecting/projecting onto the adjacent teachers #2 classroom AppleTV?

    Not as such.
    Give the AppleTV units unique names and also enable Airplay password in settings with unique passwords for each teacher.
    AC

  • Hi, I have quick question about use of USEBEAN tag in SP2. When I specify a scope of SESSION for the java bean, it does not keep the values that I set for variable in the bean persistent.Thanks,Sonny

     

    Make sure that your bean is implementing the serializable interface and that
    you are accessing the bean from the session with the same name.
    Bryan
    "Sandeep Suri" <[email protected]> wrote in message
    news:[email protected]..
    Hi, I have quick question about use of USEBEAN tag in SP2. When I
    specify a scope of SESSION for the java bean, it does not keep the
    values that I set for variable in the bean persistent.Thanks,Sonny
    Try our New Web Based Forum at http://softwareforum.sun.com
    Includes Access to our Product Knowledge Base!

  • Question about using new battery in old Powerbook

    I have a pre-intel Powerbook G4, and the battery is pretty much toast (lasts about 15 minutes now). I have ordered a new battery for it, and I have this question about using it:
    Am I smarter to keep the new strong battery out of the PB most days (as I usually work with it plugged in at home) and just pop it in when I know I will be out surfing on batteries? Or is it just as good living in my laptop 24/7 and only occasionally being called upon to do its job?
    Current bad Battery Information below:
    Battery Installed: Yes
    First low level warning: No
    Full Charge Capacity (mAh): 1144
    Remaining Capacity (mAh): 1115
    Amperage (mA): 0
    Voltage (mV): 12387
    Cycle Count: 281
    thanks folks, Shereen

    Hi, Shereen. Every Powerbook battery wants to be used — drained and then recharged — at least every couple of weeks. If you've always used your Powerbook on AC power nearly all the time, and not followed that pattern of discharging and recharging the battery every week or two, it's possible that your use habits have shortened the lifespan and prematurely diminished the capacity of your old battery. Of course it's also possible that your battery is merely old, as a battery's capacity also diminishes with age regardless of how it's used. You didn't say how old the battery is in years, so this may or may not be an issue. I mention it only because it can be an issue.
    For general information on handling a battery for the longest possible lifespan, see this article. My advice on the basis of that article and long experience reading these forums is that it would be OK to do as you propose, but I doubt that you'd derive any significant benefit from it. You would still want to be sure of putting the new battery through a charge/discharge cycle every week or two, even if you didn't have a reason to use the Powerbook away from home or your desk, because sitting unused outside the computer is just as bad for a battery as sitting unused inside it. And you should never remove the battery from your computer when it's completely or almost completely discharged and let it sit that way any longer than a day or two.
    Message was edited by: eww

  • Question about using TVARV in an ABAP program

    Hello gurus, Im sorry about the silly question.
    I have a question about using TVARV in an ABAP program.
    A program is presenting a problem and I think that in this code:
    SELECT SIGN OPTI LOW HIGH
      FROM TVARV
      INTO TABLE R_1_163431035_VELOCIDADE
      WHERE  NAME = '1_163431035_VELOCIDADE'
      AND    TYPE = 'S'.
      IF ZMM001-VELOCIDADE_B   IN R_1_163431035_VELOCIDADE AND
          ZOPERADORAS-OPERADORA = 'ABCD' AND
          ZMM001-MATERIAL       IN R_1_163431035_PRODUTO.
      ELSE.
      ENDIF.
    What happens is that the value "ZMM001-SPEED" B not exist in "R1_163431035_VELOCIDADE" but the program executes commands under the IF and not under the ELSE, as I imagine it would work. Is this correct ?
    I am new to ABAP programming, but I have a lot of XP in other programming languages ​​and this makes no sense to me.
    Anyone know where I can find some documentation of the use of "TVARV" in ABAP programs?
    I search the Internet if other programmers use TVARV this way, but found nothing, which leads me to think that was a quick and dirty solution that used here.
    If this is a bad way to program, what would be the best way?
    Regards
    Ronaldo.

    Hi Ronaldo,
    But in this case, the range is not empty, there are 17 records, in this way.:
    For the column "SING" all values ​​are "E"
    It means that the result is false if ZMM001-VELOCIDADE_B has the same value as one of the 17 records (E = exclude).
    For instance, if it has value 'C' and one of 17 records matches C, then the result is false.
    The "IF" with "IN" using "TVARV" as used in the program of the post above has the same behavior of a selection screen?
    Yes, the same behavior as the selection criterion to be exact. You can press the help key in the complex selection dialog for more info.
    I know it's a silly and very basic question, but other language that I used, only the SQL has the "IN" operator, but I think they work in different ways, so I would like to understand how it works in ABAP.
    Not silly ;-). Yes they work differently.
    More info here:
    - http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba74635c111d1829f0000e829fbfe/frameset.htm
    - http://help.sap.com/saphelp_nw70/helpdata/en/9f/dba71f35c111d1829f0000e829fbfe/frameset.htm
    BR
    Sandra

  • Question about using Macbook in Vietnam.

    I have a question about using Macbook in Vietnam. I bought my mac here in the US, and I'm going to visit Vietnam, but I'm wondering if I can plug in the power directly into the wall or I have to need any convert power modem for my mac. The only thing I know that Vietnam use 220V so, can anyone help me?

    You may need a plug adaptor, but you don't need a power converter.
    (43828)

  • I have a question about using adobe CS files in CS6 edition

    I am a graphic artist . I have a question about using adobe CS files in CS6 edition. when I am gonna open thse adobe CS created files in CS6 Edition i get a color variation than i made with the CS version.Please give me an idea about this issue as soon as possible.If you need i can upload my problem as a screenshot to clearity

    donrulz,
    Are your Edit>Color Settings the same?
    Are you using spot colours, such as Pantone (there have been some changes in CMYK values with new colour books)?

  • Using library items in templates

    I'm trying to use library items in a template but Dreamweaver
    8 keeps on adding extra
    extra closing tags. Is there some trick to using them?

    Why are you using Library items in a template?
    Can you show me the Library item, and an example of the extra
    closing tags?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "lynnkuh" <[email protected]> wrote in
    message
    news:eb0cnh$lno$[email protected]..
    > I'm trying to use library items in a template but
    Dreamweaver 8 keeps on
    > adding extra
    > extra closing tags. Is there some trick to using them?

  • Where Would be the best category to ask a question about using dashboard?

    Where Would be the best category to ask a question about using dashboard?

    However, don't ask it in this topic. Create a new topic for the question with a title describing that you are looking for Dashboard help.

  • Question about Using PAPI Web Service in PowerBuilder 9

    Hi, all.
    I Have a simple question about using papiws in power builder 9.
    In pb9, I created a new Web Service Proxy Wizard and I input a url for papiws(ex. http://seraphpernote:7001/papiws/PapiWebService) and click next.
    But I couldn't get any Service List.
    In Eclipse, I used this url for using papiws well.
    Does anybody know about this case??
    help me plz.

    IIRC you must activate PAPI-WS for the engine. In Studio you do it by right-clicking on the project, then "engine preferences". In enterprise/standalone you must activate PAPI-WS in the Admin Center.

  • Question about using 10g/11g and APEX ...

    Hi,
    I just recently learned of Oracle's APEX and have a few questions about using it.
    Can I use APEX with express, standard, and enterprise editions of 10g and 11g?
    Are all of these free to use?

    You might want to read about APEX rather than jumping into questions that are reasonably well documented. Info at http://www.oracle.com/technology/products/database/application_express/index.html
    Your specific questions:
    1) Apex is a package that can be installed into any properly licensed database.
    2) The price for the production license of the database varies by edition.
    The price for Express Edition is $0 for use in production. Part of the cost for that edition is 'no Oracle Support based support, no patches, data volume limitation, etc.'

Maybe you are looking for

  • Change Default browser, Nokia E6 Belle

    Hi, I recently upgraded to Belle, is there any way to open links from email with Opera, not default browser.  The settings->Default Apps is not working. Can I expect fixing of this problem soon? Thanks Moderator's note; Corrected post title and remov

  • Crystal Reports 2008 FP 3.6 Installation Error

    Hello. Not sure if this is the right place in the forum, but could not figure out a better one. Anyway, I am having major issues installing FixPack 3.6 on Crystal Reports 2008 (updated through SP 3). I keep getting error during installation for "Vers

  • Photoshop isn't using all the ram that I have.

    I recently installed 8gb of RAM into my Macbook Pro so i could increase the performance of Photoshop. Before using Photoshop, I increased the the "memory usage" slider up to 75% but after I do that, its only using 1gb worth of RAM. Am I doing somethi

  • URL's become URI's with Acrobat 9

    A pdf that has been created in Acrobat 8 when viewed via IE with Acrobat 9 installed shows URL's as URI's and you are not able to click on them to follow the link.

  • There is something running in the background and I don't know what it is.

    This is what I see when I click on "Window" abhtml_background_{776244c8-ba5f-4ee8-8b66-e4ca025f546a} except all of the letters are uppercase. It's a window for something I can't get rid of. It is only there when I run Firefox and restarting and empty