Refer to multiple objects with 1 variable

In general, how would one do that?
In an object, I can declare a variable to be another object, but really I want to access multiple rawValues. 
So if I have 2 fields, I'd like to have something like:
var A = textfield1 ||
           textfield2;
if (A.rawValue == null) {
do something;
In this example, there's no need to even use variables of course, but if I want to reference 200 fields, there has to be an efficient way of doing it (related to another question I asked about required fields).   Any ideas?  Variables are new to me-I've used some Form Variables, but I've set them equal to hard-coded numbers.
Thanks!

Hi,
In relation to Form Variables, which are initially set in the File > Form Properties > Variables. You can set the value of the Form Variable (and get it) using the .value. So for example if the Form Variable was called myVariable, the following would apply:
myVariable.value = 10; // Sets the variable
app.alert(myVariable.value); // Would pop a message with 10
That's not the issue here. I think the best route would be to put the 200 fields into a container/subform and then have script loop through the contents of the container/subform. Paul Guerette's LockAllFields is a great example of such a loop. There is an amended version of it here: http://assure.ly/yDtfsM.
That cn be adapted to do anything with the objects, so it depends on what action you are after.
Hope that helps,
Niall

Similar Messages

  • Apply multiple effects to multiple objects with single click box

    I would like to click on a click box and have one object appear and another object disappear. I guess what I'd like to do is apply effects to multiple objects with a single click box. Is that possible?
    Thank you.

    Welcome to our community
    Sure it can be done but you won't use effects to do it.
    When you insert an object in Captivate, you have an option to enable or disable Visibility. You also have an option to name the object. So you would give the object a meaningful name and clear the Visibility option to "hide" it until needed.
    Then you would create an Advanced Action that would hide some objects and show others.
    After that, you would assign the Advanced Action to a Click Box or a Button or some other event.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Multiple objects with guid (cross forest mailbox move)

    Hi,
    While moving 1500 mailbox from 2007 forest to 2010 forest I had a problem with 2 users. When I run the move mailbox script fot these users I got the error below. Any ideas?
    New-MoveRequest : Multiple objects with Guid fb091806-4ef7-4a36-8705-8f2c9bb25080 were found.
    At C:\Exc2010\script\MoveMailboxes.ps1:22 char:16
    + New-MoveRequest <<<<   -Identity  $($entry.PrimarySMTPAddress)  -RemoteLegacy  -RemoteGlobalCatalog $RemoteDomainCont
    roller  -RemoteCredential $RemoteCredentials   -BadItemLimit 2000 -AcceptLargeDataLoss   -TargetDeliveryDomain mydomain.com.tr
        + CategoryInfo          : NotSpecified: (0:Int32) [New-MoveRequest], RemotePermanentException
        + FullyQualifiedErrorId : 68322CDA,Microsoft.Exchange.Management.RecipientTasks.NewMoveRequest
    Those who are skilled in combat do not become angered, those who are skilled at winning do not become afraid. Thus the wise win before the fight, while the ignorant fight to win.

    Hi,
    Please try to move the mailbox manually and check the issue again.
    Looks like multiple objects have the overlapping GUID. Please check it.
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
    Sean Xiao
    TechNet Community Support

  • Multiple Insertion with substitution Variable

    Hi, I want to insert multiple values with single substitution variable in single column. I mean my query is as under.
    Add a column to infobb02 called 'Wife' and populate it with first names. If there is no wife, enter null. Write a PL/SQL loop to gather wife names from the 'user' using a substitution variable.
    That means I have to insert values of wife column by user using substitution variable and must be use loop.
    Thank you.

    You'll need a client application capable of prompting. Maybe a shell script or perl? Java? PL/SQL executes on the server and can't prompt.

  • Pages '09: Can't select multiple objects with mouse?

    Hello! I want to select some shapes. I know that I can hold down shift and click on them individually one by one, but they're very many and grouped together, so I just want to draw a 'selection-rectangle' with the mouse, just as it works in all other programs I've ever used. But this doesn't seem to work. What am I doing wrong?

    Hello Stef,
    You can simply click and drag over an area to select multiple objects if you are in a Page Layout document, but since this is your fourth post you may be new to Pages and you may not yet even be aware of the Page Layout mode. At the top of your Pages window is the document title and next to the title in parentheses are the words "Word Processing" or "Page Layout".
    So, in a Word Processing document, it's just a little bit more involved. In the upper left corner of the window, click on the View icon and select "Show Layout". You will see gray around the edges - your desktop, a white sheet - your paper, and three rectangular outlines - the header field, the text frame and the footer field. This assumes that you have the Header and Footer turned on.
    As you move your mouse, the text insertion bar, a vertical line with curved features top and bottom, will move about the document. Move the insertion bar to the margin, outside of the boxes, and press and hold the COMMAND key. Your cursor will change to an arrowhead. Now you can select multiple objects by click-dragging, just as you are accustomed to doing in other applications.
    Regards,
    Jerry

  • Selecting Multiple Objects with Output Preview Causing Problems

    I'm trying to edit a PDF and need to select multiple objects. Without Output Preview open, I can easily select all the items I need using the shift key. With Output Preview open, whenever I try to select the second object, Output Preview creates a sticky note, instead of selecting the second object.
    I am also using the PitStop Pro plug-in.
    Any idea how to correct this problem? Thanks!

    Unfortunately it seems that the new sticky note feature with the output preview in Acrobat XI uses the same keyboard shortcut as multiple selection tool in Pitstop (shift).
    Closing the output preview is the easiest way to get around this issue.
    We could consider changing the key for multiple selection in PitStop, but 'shift' is pretty much a default, so what could we change it too?
    If anyone has any thoughts could they email me, I am the product manager responsible for Pitstop at Enfocus and my email is '[email protected]'
    All feedback gratefully received.

  • Selecting multiple objects with Direct Select tool

    I'm working in InDesign CS4 on a pc and am having trouble with the Direct select tool. I go through my document selecting multiple objects, change the color of the selected boxes only to find that about half of my objects have "deselected" themselves. Has anyone else had this problem? Or does anyone have a fix I could try? Thanks!

    I know, I was pretty vague.
    Are you continuing to hold the shift key with each addition? Yes
    Are you trying to selct things on more than one spread? No
    Are you being careful to click inside each object other than an image and on the frame for an image? Yes

  • New Local Move Request fails with error "Multiple objects with Guid hex octet string were found."

    I can find nothing searching online.  Trying to move the last user mailbox from one server to another, but it fails with this error.  I have checked all mailboxes for the same GUID but can't locate it anywhere.  Anybody have some suggestions?

    Does anyone know if there is a way to perform a search based on mailbox GUID?  Maybe I could find all objects with the same and it could lead me in the right direction.
    Hi,
    To find the object that belongs to a GUID, you can refer to this blog.
    http://blogs.technet.com/b/ehlro/archive/2010/04/22/how-to-find-the-object-that-belongs-to-a-guid.aspx
    Best Regards.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Lynn-Li
    TechNet Community Support

  • View object with bind variables in subqueries

    Hi,
    i create view object with this query:
    Select /*+ use_nl(p p2) */
    'F' tipo_persona,
    p.ID_PERSONA, p.TDOC, p.NDOC, p.DENO
    From SINT_PERSONA p,
    ( Select /*+ index(a SINT_PERSONA_IX2) */
    a.ID_PERSONA
    From SINT_PERSONA_DOCUMENTO a
    where ( NDOC = :p_cuit
    and :p_cuit is not null )
    ) p2
    Where p.id_persona = p2.id_persona
    AND (deno = upper(:p_deno) or
    :p_deno is null)
    AND (NDOC = :p_ndoc or
    :p_ndoc is null)
    and grado_confiab > 0
    My binding style is oracle named.
    Then I add the bind variables:
    p_cuit this is the only required
    p_ndoc
    p_deno
    but when i run the app module with p_cuit = 20123456780 i get this error:
    (oracle.jbo.SQLStmtException) JBO-27122: Error SQL durante la preparación de la sentencia. Sentencia: Select /*+ use_nl(p p2) */
    'F' tipo_persona,
    p.ID_PERSONA, p.TDOC, p.NDOC, p.DENO
    From SINT_PERSONA p,
    ( Select /*+ index(a SINT_PERSONA_IX2) */
    a.ID_PERSONA
    From SINT_PERSONA_DOCUMENTO a
    where ( NDOC = :p_cuit
    and :p_cuit is not null )
    ) p2
    Where p.id_persona = p2.id_persona
    AND (deno = upper(:p_deno) or
    :p_deno is null)
    AND (NDOC = :p_ndoc or
    :p_ndoc is null)
    and grado_confiab > 0
    ----- Nivel 1: Detalle 0 -----
    (java.sql.SQLException) Falta el parámetro IN o OUT en el índice:: 3
    How can i do this ?
    thanks.

    Thanks! that's right the bind variables when i use it on where clause must be required, so i change my sql to:
    Select /*+ use_nl(p p2) */
    'F' tipo_persona,
    p.ID_PERSONA, p.TDOC, p.NDOC, p.DENO
    From SINT_PERSONA p,
    ( Select /*+ index(a SINT_PERSONA_IX2) */
    a.ID_PERSONA
    From SINT_PERSONA_DOCUMENTO a
    where ( NDOC = :p_cuit
    and :p_cuit <> 0 )
    ) p2
    Where p.id_persona = p2.id_persona
    AND (deno = decode(:p_deno,'null',null,upper(:p_deno)) or
    :p_deno = 'null')
    AND (NDOC = decode(:p_ndoc,0,null,:p_ndoc) or
    :p_ndoc = 0)
    and grado_confiab > 0
    and my bind variables:
    p_ndoc required default value 0
    p_cuit required default value 0
    p_deno required default value null
    and works ok!
    thanks a lot !!!!

  • Move multiple objects with on click

    Hi there
    I am using Greensocks TweenMax to try and move multiple object across the screen with the onclick function. My code is not showing up errors and my Elements are at the front of the page but nothing happens when I click the element
    Here is my code, any help would be appricated
    // insert code for mouse click here
    TweenMax.to(sym.$("Geyser_Pic"), 1, {css:{right:"0px"}, ease:Expo.easeout});
    TweenMax.to(sym.$("Volcano"), 1, {css:{right:"150px"}, ease:Expo.easeout});
    TweenMax.to(sym.$("HotSpring"), 1, {css:{right:"100px"}, ease:Expo.easeout});

    Since you are saying you do not see any errors in the browser console,
    see if your click event is actually getting trigerred.Add a alert in the click event listener.
    If the event is getting trigerred,can you share or private message me your files .I will try to nail the issue.

  • Create a Java Object with Dynamic Variables

    Hi ,
    I am constructing a web based system which stores personal information on people. I have created a Person class with all the obvoius variables, forename, surname, address etc.. My problem is that some clients wish to make use of some of the variables, some want other variables and as i meet others they wish to add in some new variables eg
    Client 1 wishes to store; Forename, Surname and Address
    Client 2 wishes to store Forename, AltForename, Surname, AltSurname and Address ( AltForename - this is an alternative Forename in this case the Irish translation of their English name)
    Client 3 wishes to store Forename, Surname, Title, Address, Height, Weight, DOB, School, Occcupation.
    Each of the clients above need to submit these in an online form with each form looking different due to the fields they have to enter and also with different validation rules.
    At present i have a Person object handling all fields i can think of and different validation methods depending on the client, but there must be a better way of doing this as each time a new field is added by a new or existing client, i not only have to update the java and jsp but also the DB.
    This is all web based and i wish to use the same code base and data source for all clients. I also wish it to be all web based. So in theory if a client asked to add in a "middle name" field to their form and make it mandatory, i could go to an admin page which lists all the possible input element types and select the "field type" then set validation rules on it.
    All the web based and DB parts can be ignored - the main issue here is creating a Person class which can have any number of variables of varying types ( String, Int, etc)
    Regards,
    Cormac
    Edited by: cormacodonnell on Jun 27, 2008 6:33 AM

    cormacodonnell wrote:
    Hi ,
    I am constructing a web based system which stores personal information on people. I have created a Person class with all the obvoius variables, forename, surname, address etc.. My problem is that some clients wish to make use of some of the variables, some want other variables and as i meet others they wish to add in some new variables eg
    Client 1 wishes to store; Forename, Surname and Address
    Client 2 wishes to store Forename, AltForename, Surname, AltSurname and Address ( AltForename - this is an alternative Forename in this case the Irish translation of their English name)
    Client 3 wishes to store Forename, Surname, Title, Address, Height, Weight, DOB, School, Occcupation.You could extend the Person class with 3 sub classes, but that might be overkill just to store personal info.
    Each of the clients above need to submit these in an online form with each form looking different due to the fields they have to enter and also with different validation rules.
    At present i have a Person object handling all fields i can think of and different validation methods depending on the client, That's probably how I'd do it if it's not too much trouble. But to be OO you should probably go the inheritence route.
    but there must be a better way of doing this as each time a new field is added by a new or existing client, i not only have to update the java and jsp but also the DB. Welcome to software development. It's called "feature creep" or "scope creep". As soon as you get your code working right and deploy it and get ready to go on vacation, the customer always comes back with something else they "need" or "forgot". The app I'm building right now I've rewritten or changed 7 times in 3 months because nobody has a clue what they really need.

  • Multiple objects with same name when rebuilding index online

    I am looking for advice on how to handle a race-condition in sql server, related to reading metadata while an online index rebuild is being performed.
    The problem is as follows:
    At some point we execute the following statement:
    SELECT 
    obj.object_id AS id, 
    scm.name AS scm, 
    obj.name AS name, 
    obj.type AS type, 
    ds.name AS dataspace_name, 
    prop.value AS description, 
    part.data_compression_desc as compression_desc
    FROM sys.objects AS obj
    INNER JOIN sys.schemas AS scm ON obj.schema_id = scm.schema_id
    INNER JOIN sys.indexes AS idx ON obj.object_id = idx.object_id AND idx.type IN (0,1)
    INNER JOIN sys.data_spaces AS ds ON idx.data_space_id = ds.data_space_id
    INNER JOIN (SELECT object_id, data_compression_desc FROM sys.partitions WHERE index_id IN (0,1) /*Heap, Clustered*/) AS part ON part.object_id = obj.object_id
    LEFT OUTER JOIN sys.extended_properties AS prop ON obj.object_id = prop.major_id AND prop.minor_id = 0 AND prop.class = 1 AND prop.name = 'Description'
    WHERE obj.type = 'U' OR obj.type = 'S'";
    The statement returns some metadata for indexes (indices?), the purpose of wich is not the subject.
    When executed while an online index rebuild is running, a race condition occurs: When the rebuilding enters the final phase, the new index, which have the same name, becomes visible and thus results in two rows with the same name (from sys.object). I am unaware
    if this only occurs for clustered index (which is what we have observed).
    We became aware of this behaviour, as we added the metadata to a .Net Dictionary using name as key, and received a duplicate key exception. We have, hoewever, not been able to reproduce the situation, due to the nature of the race condition, and we found very
    little documentation on the subject.
    What we would like to do now, is to differentiate between the two. We see two options:
    1) We could just use the first of the rows and ignore the second. This solution would require that the metadata for both rows are identical.
    2) We could discern the "real" index from the "rebuilding" index. This requires some kind of extension of the Where-part.
    We have not been able to determine if the requirements for either option is present, as we havent found any documentation, nor have we been able to test for differences, as we cannot reproduce the situation.
    We would also like some way of reproducing the situation, so ideas as to how to do that is welcome.
    Can anyone direct me to relevant documentation, or alternate solutions.
    HRP

    1. Use the index with the lower fragmentation to identify the newly rebuilt index (as it almost always will have lower fragmentation)
    2. To reproduce, block the online index rebuild process by trying to alter the table's definition in a transaction (and don't commit, which will place schema lock on the table)
    Satish Kartan http://www.sqlfood.com/

  • Settlement of Production order to multiple objects with settlement type PER

    Hi  All ,
    We have a production order in which settlement  profile says that , settlement to material is mandatory and settlement to cost center optional with u201C to be settled in full u201C
    Default object type is MAT . In indicators portion we have 100% validation , % settlement , Equivalance numbers , amount  settlement , variances to costing based COPA  -all are selected .
    In PP distribution rule , we have PP2  as default distribution rule   for the order type which means automatic generation of  settlement rule for  MTR 100% PER .
    In settlement rule of the production order , We have Settlement to material PER 50 % & Settlement to Cost center 50% PER . Automatically generated settlement rule has been modified  as above  as per the requirement .
    Although total % as per above is 100% ( Sum total of settlement to Material & Cost center ) , we are getting the error as
    Settlement type PER: Total percentage in distribution rules <> 100%
    Message no. KD562
    Diagnosis
    The distribution rule percentage total is 80,00 for settelement type PER.
    ·     Settlement type FUL:
    The total of the distribution rule percentages must always be 100%.
    Example:
    1. Receiver cost center  4711   20%
    2. Receiver cost center  4712   80%
                               Total 100%
    ·     Settlement type PER
    You can use the settlement profile to stipulate whether the periodic settlement settles 100% of the costs, or whether less is allowed.
    We can not change the  settings of settlement profile for 100% validation &  to be  settled in full  for business constrains .
    Any idea , for the reason of the error , since the sum total % for settlement is 100% and possible solution ?
    Thanks is advance for help
    Regards ,
    Arnob

    Hi,
    As per SAP help only the following fixed characteristics can be used for target fields.
    Customer number (CO-PA KNDNR)
    Product number (CO-PA ARTNR)
    Business area (CO-PA GSBER)
    Profit center (CO-PA PRCTR)
    Sales organization (CO-PA VKORG)
    Distribution channel (CO-PA VTWEG)
    Division (CO-PA SPART)
    Plant (CO-PA WERKS)
    http://help.sap.com/saphelp_erp60_sp/helpdata/en/7a/4c48c64a0111d1894c0000e829fbbd/frameset.htm
    Even when i created a table look up with AUFK, in the target field i am not able to see COPA-KAUFN in the drop down.
    Regards
    Raghu

  • Multiple ViewObjects with single variables

    Hi
    I am using jdev10g.
    Is it possible to search by single variable on 3 ViewObjects.
    I posted by issues as Problem with ViewObjects but I am not cleared.
    Please any one help me.
    Thanks

    Hi
    This is The Applicaton Moduleclass Where i have to add above code, And where vo method are generated. Please give some steps from scrach
    package sales;
    import oracle.jbo.server.ApplicationModuleImpl;
    import oracle.jbo.server.ViewLinkImpl;
    // ---    File generated by Oracle ADF Business Components Design Time.
    // ---    Custom code may be added to this class.
    // ---    Warning: Do not modify method signatures of generated methods.
    public class AppModuleImpl extends ApplicationModuleImpl {
        /**This is the default constructor (do not remove)
        public AppModuleImpl() {
        /**Sample main for debugging Business Components code using the tester.
        public static void main(String[] args) {
            launchTester("sales", /* package name */
          "AppModuleLocal" /* Configuration Name */);
        /**Container's getter for SalesForecastView1
        public SalesForecastViewImpl getSalesForecastView1() {
            return (SalesForecastViewImpl)findViewObject("SalesForecastView1");
        /**Container's getter for RevenueForecastView1
        public RevenueForecastViewImpl getRevenueForecastView1() {
            return (RevenueForecastViewImpl)findViewObject("RevenueForecastView1");
        /**Container's getter for ActualSales1
        public ActualSalesImpl getActualSales1() {
            return (ActualSalesImpl)findViewObject("ActualSales1");
        /**Container's getter for TargetSales1
        public TargetSalesImpl getTargetSales1() {
            return (TargetSalesImpl)findViewObject("TargetSales1");
        /**Container's getter for SalesComponents1
        public SalesComponentsImpl getSalesComponents1() {
            return (SalesComponentsImpl)findViewObject("SalesComponents1");
        /**Container's getter for Dept1
        public DeptImpl getDept1() {
            return (DeptImpl)findViewObject("Dept1");
        /**Container's getter for Emp1
        public EmpImpl getEmp1() {
            return (EmpImpl)findViewObject("Emp1");
    }Thanks
    NR

  • View link accessor for master view object with bind variables

    Is there a way to set bind variables for a view object to which a view link accessor is used to retrieve a view row from a detail view row in a master-detail relationship ?
    I understand that RowSet (or Row) returned by a view link accessor originates from an "internally created" view object instance.
    I am using 10.1.3.0.4 JDeveloper.

    Thanks! that's right the bind variables when i use it on where clause must be required, so i change my sql to:
    Select /*+ use_nl(p p2) */
    'F' tipo_persona,
    p.ID_PERSONA, p.TDOC, p.NDOC, p.DENO
    From SINT_PERSONA p,
    ( Select /*+ index(a SINT_PERSONA_IX2) */
    a.ID_PERSONA
    From SINT_PERSONA_DOCUMENTO a
    where ( NDOC = :p_cuit
    and :p_cuit <> 0 )
    ) p2
    Where p.id_persona = p2.id_persona
    AND (deno = decode(:p_deno,'null',null,upper(:p_deno)) or
    :p_deno = 'null')
    AND (NDOC = decode(:p_ndoc,0,null,:p_ndoc) or
    :p_ndoc = 0)
    and grado_confiab > 0
    and my bind variables:
    p_ndoc required default value 0
    p_cuit required default value 0
    p_deno required default value null
    and works ok!
    thanks a lot !!!!

Maybe you are looking for