Two blocks using the same Web

I'm working on a program of forms for some users will be investigation only table X, but others will be able to update not all but some of them, most delete records, but not insert.
The new form a trigger will focus on the user account, then go_block to (survey only) Block1 or Block2 (authorized update).
The two blocks contain the same elements, but the properties are different. Both are set to the same canvas.
__
In the canvas, both sets of fields are super imposed on the other. How to trigger
User survey: visable Block1, Block2 not
User update: visable Block2, block 1, no?
__
I could have separate canvases, but I thought that it would save some time if I only had to maintain a.
__
Thank you
Sandy

WHEN_NEW_FORM_INSTANCE fires when you open the form (after the opening session, but before the block operations, as the query).
in a block of several ranks, the integrated SET_ITEM_PROPERTY changes the properties of all the elements (all recordings), SET_ITEM_INSTANCE_PROPERTY for a single element of a defined line.
Maybe it is enough to change the properties of a block like this:

IF USER = 'A' THEN
    SET_BLOCK_PROPERTY('A', INSERT_ALLOWED, PROPERTY_FALSE);
    SET_BLOCK_PROPERTY('A', UPDATE_ALLOWED, PROPERTY_FALSE);
    SET_BLOCK_PROPERTY('A', DELETE_ALLOWED, PROPERTY_FALSE);
ELSE
    SET_BLOCK_PROPERTY('A', INSERT_ALLOWED, PROPERTY_TRUE);
    SET_BLOCK_PROPERTY('A', UPDATE_ALLOWED, PROPERTY_TRUE);
    SET_BLOCK_PROPERTY('A', DELETE_ALLOWED, PROPERTY_TRUE);
END IF;

Tags: Oracle Development

Similar Questions

  • Photoshop CS4 - is - does anyone know how to find out if two people use the same file?

    Photoshop CS4 - is - does anyone know how to find out if two people use the same file?

    Yes, I assumed that was the case, and I thought that this link addressed to her.  I would have thought it was more a function of your network and the OS than Photoshop.

  • FRM - 40202:Field must be entered on two blocks with the same table

    I have two blocks, blockA and blockB, both from the same table that is tableX.

    When I ask of blockA and it worked, then I go to blockB and modify data, and save, there is no problem. But when I do not run the query of blockA or if the query did not return any results, I go to blockB and change some data then save, I got this error. The cursor then go to first blockA point. So now, I have to delete this empty line before the Save.


    Any suggestion?

    you set a few initial values programmatically for a block?
    in this case, the status changes to INSERT and you will get this message.
    You can check the staus with GET_RECORD_PROPERTY (1, "A BLOCK", STATUS), e.g. with the trigger KEY-COMMIT.

  • two computers using the same router belkin wireless gave rise to the loss or crippling a slow internet connection, why?

    Two laptops in my house share a belkin wireless router. Every 10 minutes, when the two laptops are connected to the internet, one or the other seems to push the other off the connection. Then speed either decreases or the connection is completely lost. This occurs when one of the laptops is using Skype or download, but also just when both are normally surf as well. I've never known a wireless router not being able to manage two laptops before. Any ideas, anyone please? The two laptops running Windows 7 if it helps?

    Hello

    Did you change to the computer?

    Method 1:

    I suggest you to see link and check.

    Windows wireless and wired network connection problems

    http://Windows.Microsoft.com/en-us/Windows/help/wired-and-wireless-network-connection-problems-in-Windows

    Method 2:

    I also suggest you to see link and check.

    Why is my Internet connection so slow?

    http://Windows.Microsoft.com/en-us/Windows7/why-is-my-Internet-connection-so-slow

    WARNING: Reset Internet Explorer settings can reset security settings or privacy settings that you have added to the list of Trusted Sites. Reset the Internet Explorer settings can also reset parental control settings. We recommend that you note these sites before you use the reset Internet Explorer settings

    Note: The Microsoft Safety Scanner ends 10 days after being downloaded. To restart a scan with the latest definitions of anti-malware, download and run the Microsoft Safety Scanner again.

    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.

    See also:

    You experience slow performance in Internet Explorer 9

    http://support.Microsoft.com/kb/2398082

  • Inter communication VM in two ESXi using the same VLAN ID

    Hello

    I am creating a lab in my server ESXi (192.168.1.10). The default VLAN (VMNetwork) connected to ESXi is VLAN 1. If the virtual machines with 192.168.1.xx IP. able to communicate to the external network.

    But I created a new 25 VLAN in my ESXi and added two virtual machines in that ESXi. Communication between these two VMs is perfect.

    My question is, what should I do if I need these 2 VMs to connect a computer virtual hosted in an another ESXi with 25 VLAN?

    Thank you

    Nithin

    Well lets go back to the original question:

    But I created a new 25 VLAN in my ESXi and added two virtual machines in that ESXi. Communication between these two VMs is perfect.

    My question is, what should I do if I need these 2 VMs to connect a computer virtual hosted in an another ESXi with 25 VLAN?

    If you don't want your VM in 25 a VLAN on a HOST to speak to other virtual machines in the VLAN 25 to HOST B, you will need to configure it as the attached picture:

    Your psyhical switch should the Tag VLAN on ports so that he knows how to route traffic.  Now I guess that your fault WHAT VLAN on all your switches is 1 as it is pretty standard.  VLAN 1 is also past reguardless so you will probably just tag with 25 ports VLAN.  Once the ports are all stamped this VLAN, they will be able to talk with success.  Now what happens, it's your 2 VMS in the vSwitch can talk because they are both on the same vSwitch with VLAN Tag on it, however, when you try to talk to another virtual machine to another host the package arrives at your psyhical pass and does not see a label on this port if it falls.  The only ports that you need to add this tag VLANS are the your NIC psyhical on the host with that vSS is connected.

    I hope that this has helped or made things clearer

  • Best way to go to have two people use the same shape?

    Hi guys,.

    Relatively new to livecycle and I need help.

    I was invited to make a form that 2 different people have access too, do I have to do is as follows:

    Person 1

    Has access to the first 5 pages and is able to fill in the form

    Person 2

    Has access to the ENTIRE document and see what 1 PERSON said.

    Is this possible with two different versions of the document, or it will do well as a?

    Concerning

    Well I've done it before with a button that clicks on the second person and this opens a messagebox that asks for a password. If the password has been entered correctly the rest of the form (which is initially set to hidden) will become visible. The code in the click event of the button is something like (in formcalc):

    var correctpassword = xfa.host.response ("password:","office", "", 1 ")

    If (correctpassword == "whateverYouWantYourPasswordToBe") then

    restOfForm.presence = "visible".

    .its presence $ = "hidden".

    else xfa.host.messageBox ("You entered the wrong password", "office use only", 1).

    endif

  • Share pst file between two users using the same Windows 7 Comp.

    A Windows 7 computer with two user accounts how can I share the pst files & psb between users?

    DONMS wrote:
    > With a computer Windows 7 and two user accounts how can I share the pst & psb
    > files between users?

    Re-ask this question in a forum of Outlook to receive the best advice.

    --

    Bruce Chambers

    Help us help you:
    http://www.CatB.org/~ESR/FAQs/smart-questions.html

    http://support.Microsoft.com/default.aspx/KB/555375

    They who can give up liberty for a little temporary
    safety deserve neither liberty nor safety. ~ Benjamin Franklin

    A lot of people could die rather that thinking; in fact, most do. ~ Bertrand Russell

    The philosopher never killed the priests, while the priest was
    has killed a large number of philosophers.
    ~ Denis Diderot

  • Try to use the same pattern for more than two channels (CSR configuration) with usb 6000

    Hello

    I am currently trying to implement a LabView code to get readings of voltage using 5 different places at the same time. I want to only use the first location in the ground and get 4 measurements of voltage between the ground and each of the other 4 channels. I use a USB 6000 which, for now, allows me to use the same pattern for only two channels. Is it possible to use the same pattern for 4 channels?

    Thank you

    Maria

    The images do not explain everything. You must explain what are the sensors. I think you totally wrong on how they should be linked. CSR, all sensors must be a common understanding and the outputs not individual channels as I have already explained. If you are unable to do this, you should probably not use CSR and you have the wrong data acquisition device. If you want a side of a sensor as a reference, you need differential connections.

  • Is it possible to use the same password for two computers through quickbooks?

    We have two computers that are connected to each other through quickbooks and we must be able to get our e-mails from computers. Is this possible? We need to send invoices to the customers of a computer and the other is used for accounting and payroll.

    Original title: you can use the same password for two computers if they are already linked through quickbooks?

    Hi JayneB,

     

    (1) are you referring to the password of the user account?
    (2) who is the operating system installed on the computer?

     

    Method-

    I would like you to contact the Quickbooks support for assistance.

    Check out the link-

     

    QuickBooks support

     

    Hope this helps!

     

  • Use hp officejet 5610 all in one and hp scanjet g4050 (the two usb) on the same computer

    Have an officejet 5610 that I used for years to digitize documents, faxes, printing and copying on Acer computer with windows XP. Recently, I moved my scanner flatbed scanjet g4050 wifes to my computer to scan photos and negatives. The problem is when I install the G4050, I can scan is no longer with my Officejet 5610. Get an error message; "An error occurred just by contacting the HP imaging device. Try the following steps. Turn off and unplug for 60 seconds. The cord is properly attached. Reset. Uninstall and reinstall the device. Reinstallation of photosmart software.  Have tried all these. Does not help unless I have uninstall and remove the two devices and reinstall officejet 5610 ONLY. If I reinstall G4050 default folder which is recommended for multiple hp devices work properly then the 5610 can sweep is no longer. Error message as above. Running scan doctor and it says that there is a problem of façade. Go to the solution Center, click settings, scan settings, scan to Setup. When I click scan to Setup, I get the same error message as above. Both devices appear in the HP Solution Center each with its own tab. Is it possible to use these two devices on the same computer?

    These two devices will not be able to work together. The ScanJet uses a newer than the 5610 software the 5610 will not work with. You can try to install the ScanJet, then the 5610, but I don't think it will help. I'm sure that just does not allow two devices on the same computer because the software conflict. I'm sorry.

  • can I use the same USB cable for two printers - HP Officejet 4315 and HP Officejet 6110?

    I have an existing HP Officejet 4315 with USB cable and want to use the same cable replacement for my other printers, the HP Officejet 6110.  This allows me to change the cable between the printer and still work?

    Thank you for your thoughtful replies.

    As you asked specifically about the compatibility of the USB cable, I would say that it will work because both devices support USB 2.0 (that is, both devices can be used with the same USB cable alternating).

    Installation of the software for the two devices must be made successfully to use various functions.

  • BlackBerry Smartphones using two BB with the same account of Blackberry.

    Currently, I have a BB 9900 and is considering obtaining a BBZ10. The 9900 has a standard sim card by which the Z10 I think a micro sim. (I still have to talk to my service provider relating to the regime of a sim 2)

    Is it possible to use two phones at the same time, if my provider allows, regarding BB services etc. using the same account etc?

    I thought that I have addressed this before first topic to contact my ISP.

    Thank you.

    Kind regards.

    You ask the subject from the BBID even on both devices?

    Yes, to a certain extent, on the data.

    E-mail and social accounts like Facebook and Twitter works perfectly.

    BlackBerry Messenger will use only a BBID on a device at a time... If you have the same BBID on both devices, you will need to choose which will be your active BBM.

    Of course, the main question to this is if your mobile operator will allow two SIM cards with the same account. Doubtful.

  • How to stop the connectivity between two computers that use the same IP address... ?

    Today, I managed to connect two computers with the same IP address. But now it is to be feared. for example, a person can access my computers using my IP and MAC address. So now, how can I stop the connectivity between these two computers. should what setting I use to stop.

    Tahnks.

    Hello

    1 have. what measures you taken to connect 2 computers with the same IP address?

    2. How are the 2 computers connected?

    3. how exactly you want to stop the connectivity between 2 computers?

    I want to tell you that 2 computers on the same network cannot have the same address. Each machine must have a unique address to identify it. A private network, as a home network connected to the internet, can be connected to a router to connect to the network, will have only 1 address, public IP address.

    In addition, if we know the IP address of a computer along the user ID and password, we can access the computer/shared files.

     
    If you are referring to the change of the IP address of the two computers, you can follow these steps and check.
     
    a. network connections open. Click the Start button, and then click Control Panel. In the search box, type 'adapter' and then, under center network and sharing, click view network connections.
    b. right click on the connection you want to change. Click on properties. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
    c. click on the network tab. Under this connection uses the following items, click Internet Protocol Version 4 (TCP/IPv4) or Internet Protocol Version 6 (TCP/IPv6), and then click the properties button. To specify your IP for IPv4, click on use the following IP address, and then, at the address IP, subnet mask, and gateway boxes by default, type IP address settings.
     
    A typical IPv4 address looks like 192.168.0.2; a typical subnet mask is 255.255.255.0. The default gateway is usually the address of your router.
    For example, IP address: 192.168.0.2 by 192.168.0.12 (for computers)
    Subnet mask: 255.255.255.0
    DNS: 192.168.0.1
     
    I hope this helps. If you have any other queries/issues related to Windows, write us and we will be happy to help you further.
  • Multimedia file sharing only works if the two devices are connected using the same protocol

    So I'm frustrated!

    I spent an hour trying to get my Windows 7 computer to share my music with my XBox 360. I have two machines on my network, one connected by Ethernet to the router and the other connected by WiFi. I tried everything I could find online to get the WiFi connected machine appears in the "Music Player" on my XBox system - follow all sharing, make sure that my router has UPnP, restarted a bouquet of services, etc..
    Nothing! During this time, my machine connected to Ethernet was watching me in the face. He has appeared on the XBox without problem. I started to compare the settings on both machines and found no difference.
    Then I remembered, boredom, I had setting up WiFi sync for Windows Phone my wife. In fact, it was this session of troubleshooting that lead me to put this machine on the WiFi in the first place! Seems to set up WiFi sync, Windows Phone and the target of the machine must be, not only connected to the same network (obviously), but for some reason any the $ @$ crazy, both connected by WiFi. I just connected this computer by WiFi - not happy, a faster speed with my wired connection - and immediately fixed the problem itself.
    Then, remembering that, I moved my XBox WiFi network and - presto - my second machine appears without a problem.
    My question is... WTF! ???
    This is ridiculous - this is the same network! Why things must be connected using the same protocol?

    Hi, Edward Petersen,.

    Please contact the Microsoft community. I'll help you solve the problem with sharing music using media sharing.

    Some routers isolate the cable connections and wireless, you can check if you have the option in the configuration of the router to share media

    If the problem occurs, you can contact the router manufacturer for assistance.

    Hope this information helps. If you need help with Windows, simply reply that we will be happy

    to help you.

  • Mr President, how can I enter two rows at the same time with different default values that only the first line to use see?

    Mr President.

    My worm jdev is 12.2.1

    How to enter two rows at the same time with different default values that only the first line to use see?

    Suppose I have a table with four fields as below

    "DEBIT" VARCHAR2(7) , 
      "DRNAME" VARCHAR2(50),
      "CREDIT" VARCHAR2(7) , 
      "CRNAME" VARCHAR2(50),
    

    Now I want that when I click on a button (create an insert) to create the first line with the default values below

    firstrow.png

    So if I click on the button and then validate the second row with different values is also inserted on commit.

    The value of the second row are like the picture below

    tworows.png

    But the second row should be invisible. It could be achieved by adding vc in the vo.

    The difficult part in my question is therefore, to add the second row with the new default values.

    Because I already added default values in the first row.

    Now how to add second time default values.

    Concerning

    Mr President

    I change the code given by expensive Sameh Nassar and get my results.

    Thanks once again dear Sameh Nassar .

    My code to get my goal is

    First line of code is

        protected void doDML(int operation, TransactionEvent e) {    
    
            if(operation != DML_DELETE)
                 {
                     setAmount(getPurqty().multiply(getUnitpurprice()));
                 } 
    
            if (operation == DML_INSERT )
                       {
                               System.out.println("I am in Insert with vid= " + getVid());
                           insertSecondRowInDatabase(getVid(),getLineitem(),"6010010","SALES TAX PAYABLE",
                            (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));      
    
                           }
    
            if(operation == DML_UPDATE)
                              {                                                    
    
                                 System.out.println("I am in Update with vid= " + getVid());
                             updateSecondRowInDatabase(getVid(),
                                 (getPurqty().multiply(getUnitpurprice()).multiply(getStaxrate())).divide(100));      
    
                              }                      
    
            super.doDML(operation, e);
        }
        private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object value4, Object value5)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "Insert into vdet (VID,LINEITEM,DEBIT,DRNAME,AMOUNT) values " +
                 "('" + value1 + "','" + value2 + "','" + value3 + "','" + value4 + "','" + value5 + "')";  
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }
                  }  
    
                  private void updateSecondRowInDatabase(Object value1, Object value5)
                  {
                    PreparedStatement stat = null;
                    try
                    {
                      String sql = "update vdet set  AMOUNT='"+ value5+"' where VID='" + value1 + "'";                     
    
                      stat = getDBTransaction().createPreparedStatement(sql, 1);  
    
                      stat.executeUpdate();
                    }
                    catch (Exception e)
                    {
                      e.printStackTrace();
                    }
                    finally
                    {
                      try
                      {
                        stat.close();
                      }
                      catch (Exception e)
                      {
                        e.printStackTrace();
                      }
                    }                  
    
                  }
    

    Second line code is inside a bean method

        public void addNewPurchaseVoucher(ActionEvent actionEvent) {
            // Add event code here...
    
            BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("VoucherView1Iterator");
                   RowSetIterator rsi = dciter.getRowSetIterator();
                   Row lastRow = rsi.last();
                   int lastRowIndex = rsi.getRangeIndexOf(lastRow);
                   Row newRow = rsi.createRow();
                   newRow.setNewRowState(Row.STATUS_NEW);
                   rsi.insertRowAtRangeIndex(lastRowIndex +1, newRow);
                   rsi.setCurrentRow(newRow);
    
                   BindingContainer bindings1 = BindingContext.getCurrent().getCurrentBindingsEntry();
                   DCIteratorBinding dciter1 = (DCIteratorBinding) bindings1.get("VdetView1Iterator");
                   RowSetIterator rsi1 = dciter1.getRowSetIterator();
                   Row lastRow1 = rsi1.last();
                   int lastRowIndex1 = rsi1.getRangeIndexOf(lastRow1);
                   Row newRow1 = rsi1.createRow();
                   newRow1.setNewRowState(Row.STATUS_NEW);
                   rsi1.insertRowAtRangeIndex(lastRowIndex1 +1, newRow1);
                   rsi1.setCurrentRow(newRow1);
        }
    

    And final saveUpdate method is

        public void saveUpdateButton(ActionEvent actionEvent) {
            // Add event code here...
    
            BindingContainer bindingsBC = BindingContext.getCurrent().getCurrentBindingsEntry();      
    
                   OperationBinding commit = bindingsBC.getOperationBinding("Commit");
                   commit.execute(); 
    
            OperationBinding operationBinding = BindingContext.getCurrent().getCurrentBindingsEntry().getOperationBinding("Commit");
            operationBinding.execute();
            DCIteratorBinding iter = (DCIteratorBinding) BindingContext.getCurrent().getCurrentBindingsEntry().get("VdetView1Iterator");// write iterator name from pageDef.
            iter.getViewObject().executeQuery();  
    
        }
    

    Thanks for all the cooperation to obtain the desired results.

    Concerning

Maybe you are looking for