Generation of auto field problem?

Hello

I have a page for the creation of a record. When the user clicks on the button 'create' controls come to this page.

As soon as the order is in the page that I am auto production "Device Id" and Code «device»

There are two buttons one is 'Apply' and another is "Cancel".

Button to save recording and cancellation button to return to the first page to apply.

It is whenever I am clicking on all touch Device ID and device code generates again...

What should be the problem. ?

Auto generate device id (primary key), I replaced create method EOImpl and the device code, I wrote a method inside AMImpl and call this method next PR of the Insert page.


Kind regards
Ajay

Published by: Ajay Sharma on October 17, 2012 11:44

Published by: Ajay Sharma on October 17, 2012 11:45

Hello

You could write auto code generation in the PR method by calling an AMImpl method.
So every time the page is loaded, it executes this method to automatically generate.

To reslove the issue, there must be some condition if such that PR will perform this method only when the control is coming from the create"" button.

Also can you paste your PR and AMImpl code for automatic generation here?

Sushant-

Tags: Oracle Applications

Similar Questions

  • Auto rotate problem

    Hi guys, I recently noticed that my screen does not respond to landscape mode when I tilt the phone... Auto-rotation is enabled, I've never been there before... I see ppl also had this problem, some with the update... What can I do? Thanks in advance

    Hey guys, I rebooted the phone until it vibrates 3 times and now it works again I hope that the problem will not recur... I'll keep guys updated if something ever happen again

  • Custom with LostFocus list field problems

    Hello experts!

    I made a custom, list field when I draw the lines, I made a solution using a personalized reminder, well... I have a problem when the list field lost focus, because when I have a focus to the button my list have a last item carried.

    I want to erase,

    Any suggestions?

    Best regards, Rampelotti

    in the drawListRow() method adds the underside before the draw.

    if(graphics.isDrawingStyleSet(Graphics.DRAWSTYLE_FOCUS))
    
  • Changing custom field problem Listener

    I created a custom field that works as a button. He painted a bitmap to the screen. And when it focuses it changes the color of the image. However, I try to add a field change listener to it. I looked on the forum and found this code.

    protected boolean navigationClick(int status, int time)
    {
         fieldChangeNotify(1);
         return super.navigationClick(status, time);
    }
    

    It works but I have a problem. You see, my button now push a small screen, thin in the stack that has another button of the same type on it (custom button). At the moment it is the only button on this screen, which means that it has the focus. But it seems that once my button has the focus, I can click anywhere and it is always enabled. I only want to be activated when I touch it. Any suggestions? Here is my code

    public class MenuButtonField extends Field
    {
        Bitmap imagePic;
        Bitmap highlightedPic;
        public MenuButtonField(String imageName, String focusedImg)
        {
            super();
            imagePic=Bitmap.getBitmapResource(imageName);
            highlightedPic=Bitmap.getBitmapResource(focusedImg);
        }
    
        public void layout(int width,int height)
        {
            setExtent(20,80);
        }
    
        public boolean isFocusable()
        {
            return true;
        }
    
        public void drawFocus(Graphics graphics, boolean on)
        {
            paint(graphics);
        }
    
        public boolean touchEvent(TouchEvent message)
        {
            int type=0;
            type=message.getEvent();
            if(type==TouchEvent.CLICK)
            {
                fieldChangeNotify(1);
                return true;
            }
            else{
                return false;
            }
        }
    
        protected boolean navigationClick(int status, int time) {
            fieldChangeNotify(1);
            return super.navigationClick(status, time);
        }
    
        protected void paint(Graphics g)
        {
    
            g.drawBitmap(0, 20, 20, 80, imagePic, 0, 0);
    
            if(this.isFocus())
            {
                g.drawBitmap(0, 20, 20, 80, highlightedPic, 0, 0);
            }
    
        }
    }
    

    PLEASE HELP ME

    I found help here
    http://supportforums.BlackBerry.com/T5/Java-development/navigationClick-invoked-when-clicking-outsid...

    The position of Scribe the Lion was the solution.

  • Browser hyperlink field problem

    Hello

    In my application I am display of the HTML in the browser field, I give you the layout for this field of browser, my problem is some hyperlinks in the HTML content is there too. My requirement is each time I click on one of the links so I need to open the new field of browser and I need in the field of fullscreen browser (IE firstly I am html content display in small area in my screen but I need to open the new field of device browser total widtf and device height.) can anyone suggest me how to open the new field of browser, I click on any hyperlink...

    Thanks in advance,

    Lachi.

    Hi laxman, see this link

    http://supportforums.BlackBerry.com/T5/Java-development/open-link-in-BrowserField/m-p/557983#M113954

  • CUSTOM TEXT FIELD PROBLEM

    public class CustText extends TextField{
        private String _text;
        private FontFamily _fontFamily1;
        private int _size, _color;
        private Font _headFont = null;
    
        public CustText(String _text, int _size,int _color, long _property)
        {
            super(_property);
            this._text = _text;
            this._size = _size;
            this._color = _color;
        }
    
        protected void paint(Graphics g)
        {
            try{
                _fontFamily1 = FontFamily.forName("aerial");
            } catch(ClassNotFoundException e) {
                    _fontFamily1 = Font.getDefault().getFontFamily();
            }
            _headFont = _fontFamily1.getFont(Font.PLAIN,_size);
                g.setColor(_color);
            g.setFont(_headFont);
            g.drawText(_text,0, 0);
        }
    }
    

    I use the above code to customTextfield, the problem here is, when it is used to display long text that does not move to the next line, only the first line is painted, the rest of the lines are missing

    Graphics.drawText draws text on a single line.  This example allows input of multi line.

    http://supportforums.BlackBerry.com/T5/Java-development/create-a-custom-field-using-attributes-of-OT...

  • focus with custom text field problem

    Hello

    I am new to BB dev., trying to write a small program with two CustomTextFields, but faceing the problem, then try to verify that CustomTextField is selected (the focus).

    CustomTextField (NumericTextField)

    import net.rim.device.api.ui.Manager;
    import net.rim.device.api.ui.Field;
    import net.rim.device.api.ui.component.EditField;
    import net.rim.device.api.system.Display;
    import net.rim.device.api.system.Characters;
    import net.rim.device.api.ui.Graphics;
    import net.rim.device.api.ui.Font;
    
    public class NumericTextField extends Manager
    {
    
        private final static int DEFAULT_LEFT_MARGIN = 10;
        private final static int DEFAULT_RIGHT_MARGIN = 10;
        private final static int DEFAULT_TOP_MARGIN = 5;
        private final static int DEFAULT_BOTTOM_MARGIN = 5;
    
        private final static int DEFAULT_LEFT_PADDING = 10;
        private final static int DEFAULT_RIGHT_PADDING = 10;
        private final static int DEFAULT_TOP_PADDING = 5;
        private final static int DEFAULT_BOTTOM_PADDING = 5;
    
        private int topMargin = DEFAULT_TOP_MARGIN;
        private int bottomMargin = DEFAULT_BOTTOM_MARGIN;
        private int leftMargin = DEFAULT_LEFT_MARGIN;
        private int rightMargin = DEFAULT_RIGHT_MARGIN;
    
        private int topPadding = DEFAULT_TOP_PADDING;
        private int bottomPadding = DEFAULT_BOTTOM_PADDING;
        private int leftPadding = DEFAULT_LEFT_PADDING;
        private int rightPadding = DEFAULT_RIGHT_PADDING;
    
        private int totalHorizontalEmptySpace = leftMargin + leftPadding + rightPadding + rightMargin;
        private int totalVerticalEmptySpace = topMargin + topPadding + bottomPadding + bottomMargin;
    
        private int minHeight = getFont().getHeight() + totalVerticalEmptySpace;
        private int width = Display.getWidth();
        private int height = minHeight;
    
        private EditField editField;
    
        public NumericTextField()
        {
            super(0);
    
            editField = new EditField(EditField.FILTER_REAL_NUMERIC);
            add(editField);
        }    
    
        protected void sublayout(int width, int height)
        {
            Field field = getField(0);
            layoutChild(field, this.width - totalHorizontalEmptySpace, this.height - totalVerticalEmptySpace);
            setPositionChild(field, leftMargin+leftPadding, topMargin+topPadding);
            setExtent(this.width, this.height);
        }
    
        public void setTopMargin(int topMargin)
        {
            this.topMargin = topMargin;
        }
    
        public void setBottomMargin(int bottomMargin)
        {
            this.bottomMargin = bottomMargin;
        }    
    
        protected void paint(Graphics graphics)
        {
            graphics.drawRoundRect(leftMargin, topMargin, width - (leftMargin+rightMargin), height - (topMargin+bottomMargin), 5, 5);
    
            boolean longText = false;
            EditField ef = (EditField)getField(0);
            String entireText = ef.getText();
    
            String textToDraw = "";
            Font font = getFont();
            int availableWidth = width - totalHorizontalEmptySpace;
            if (font.getAdvance(entireText) <= availableWidth)
            {
                textToDraw = entireText;
            }
            else
            {
                int endIndex = entireText.length();
                for (int beginIndex = 1; beginIndex < endIndex; beginIndex++)
                {
                    textToDraw = entireText.substring(beginIndex);
                    if (font.getAdvance(textToDraw) <= availableWidth)
                    {
                        longText = true;
                        break;
                    }
                }
            }
    
            if (longText == true)
            {
                ef.setText(textToDraw);
                super.paint(graphics);
                ef.setText(entireText);
            }
            else
            {
                super.paint(graphics);
            }
        }
    
        public int getPreferredWidth()
        {
            return width;
        }
    
        public int getPreferredHeight()
        {
            return height;
        }
    
        protected boolean keyChar(char ch, int status, int time)
        {
            if (ch == Characters.ENTER)
            {
                return true;
            }
            else
            {
                return super.keyChar(ch, status, time);
            }
        }
    
        public String getText()
        {
            return ((EditField)getField(0)).getText();
        }
    
        public void setText(final String text)
        {
            ((EditField)getField(0)).setText(text);
        }
    }
    

    and in my screen content trying to check:

    NumericTextField focusImput() {
        NumericTextField focusField;
        if (_fieldFrom.isFocus()) {
            focusField = _fieldtFrom;
        }
        else {
            focusField = _fieldTo;
        }
        return focusField;
    }
    

    but it always returns me _fieldTo...

    NumericTextField definition:

    _fieldFrom = new NumericTextField();
    _fieldFrom.setChangeListener(this);
    manager.add(_fieldFrom);
    
    _fieldTo = new NumericTextField();
    _fieldTo.setChangeListener(this);
    manager.add(_fieldTo);
    

    Maybe someone to guide me how to correctly focus feature?

    Thanks in advance.

    Then you need two slightly customized EditFields - their main customization would be limiting their width, as well as making them focusable/unfocusable. So, something like this should work:

    public class NumericTextField extends EditField {
      // override the constructors used in your code, adding FILTER_REAL_NUMERIC
      // ...
      private int maxWidth = Integer.MAX_VALUE >> 1;
      private boolean focusable = true;
    
      protected void layout(int width, int height) {
        super.layout(Math.min(maxWidth, width), height);
      }
    
      public void setMaxWidth(int width) {
        maxWidth = width;
        updateLayout();
      }
    
      public boolean isFocusable() {
        return (isStyle(FOCUSABLE) & focusable);
      }
    
      public void setFocusable(boolean on) {
        focusable = on;
      }
    }
    

    If you want to place the fields, use setMargin - he is documented in OS 6.0 but works since OS 4.2.

    Use setMaxWidth to, well, set desired maximum width (otherwise EditField tenorman to the top of the entire available width). Use the setFocusable to toggle the field. In addition, you can play with the Visual States for the field you turn, but it's an exersize for another day. First of all make sure that it works and you know how to use it.

  • TMS 14.3 - auto connect problem - multiple call attempts

    Hi people,

    I have a client with an environment with TMS 14.3, conductor XC 2.2, VCS 7.2.2 TP Server 3.1 and CUCM 8.6.2. They have several items on VCS and several endpoints of CTS/TX registered to CUCM Cisco and Polycom endpoints. There is a trunk SIP between CUCM and VCS. Conductor is integrated with VCS by using the B2BUA deployment model. TP server is behind the driver used as multipoint resource only for conferences scheduled through TMS.

    We are having problems when planning a Conference at TMS using type "Auto-connect" and setting driver to dial a number to the selected participants. For some end points when the meeting starts, conductor made several calls try to participants, even after participants answering the call. For example, conductor connects to an endpoint 3000 CTS, CTS answers the call and connect to the meeting, but a few seconds later, conductor's call another attempt at the endpoint, then endpoint answers the second call and put the first call on hold.

    This problem occurs for the following parameters:

    • Endpoints of Polycom HDX series
    • CUCM items of endpoint CTS/TX
    • Outside dial participants (those selected on the tab 'External' to the planning page)

    The problem does not occur for any endpoint TC registered in VCS.

    As a troubleshooting step, the client was trying to configure TMS to try to connect to the participants once (using the "Attempts to connect for scheduled calls" setting value 1), but the issue still occur.

    Tomorrow, I'll be on the customer's site to check if this strange behavior has been generated by TMS or by the chef himself. I really think that it is some sort of bug. I don't know that their environment has been configured properly according to the Cisco documentation, because I was the person who made the project.

    I'd appreciate any suggestions really.   =)

    Thanks in advance.

    Paulo Souza

    My answer was helpful? Please note the useful answers and do not forget to mark questions resolved as "responded."

    Hi Paulo,

    a few days back we had seen this problem and I filed the bug "CSCui90143."

    Currently, we anticipate that this problem occurs because the MSD is not able to understand the message of feedback from the conductor.

    I hope that clarifies. I don't have to if you want to be able to access the bug or not.

    Rgds

    Alok

  • SCSI address and null field problems when adding disks

    I had a spreasheet and requires up to 6 drives to be added to a list of virtual machines.

    vmname hdd1, hdd2, hdd3, hdd4, and hdd5, hdd6. I then want to run another command if hdd2 is lets say its to return "two disc exists."

    HDD1 must always be mapped to scsi 0:3.

    HDD2 must always be mapped to scsi 0:4 etc..

    but some time ago a hdd1 and a hdd3 and hdd6 but no hdd2 or hdd 4.

    I have two problems

    I don't know how to make sure the player is assigned to writing scsi address.

    I know how to do or not to do things if the fields are null or not.

    Help, please.

    You can specify a SCSI nummer if you add a drive hard using the vSphere API:

    $spec = New-Object VMware.Vim.VirtualMachineConfigSpec
    $spec.deviceChange = New-Object VMware.Vim.VirtualDeviceConfigSpec[] (1)
    $spec.deviceChange[0] = New-Object VMware.Vim.VirtualDeviceConfigSpec
    $spec.deviceChange[0].operation = "add"
    $spec.deviceChange[0].fileOperation = "create"
    $spec.deviceChange[0].device = New-Object VMware.Vim.VirtualDisk
    $spec.deviceChange[0].device.key = -100
    $spec.deviceChange[0].device.backing = New-Object VMware.Vim.VirtualDiskFlatVer2BackingInfo
    $spec.deviceChange[0].device.backing.fileName = ""
    $spec.deviceChange[0].device.backing.diskMode = "persistent"
    $spec.deviceChange[0].device.backing.split = $false
    $spec.deviceChange[0].device.backing.writeThrough = $false
    $spec.deviceChange[0].device.backing.thinProvisioned = $false
    $spec.deviceChange[0].device.backing.eagerlyScrub = $false
    $spec.deviceChange[0].device.connectable = New-Object VMware.Vim.VirtualDeviceConnectInfo
    $spec.deviceChange[0].device.connectable.startConnected = $true
    $spec.deviceChange[0].device.connectable.allowGuestControl = $false
    $spec.deviceChange[0].device.connectable.connected = $true
    $spec.deviceChange[0].device.controllerKey = 1000
    $spec.deviceChange[0].device.unitNumber = 5
    $spec.deviceChange[0].device.capacityInKB = 1048576
    
    $vm = Get-VM -Name MyVM
    $vm.ExtensionData.ReconfigVM_Task($spec)
    

    The above code adds a hard drive with number 5 on the SCSI to a virtual machine called MyVM. The line:

    $spec.deviceChange[0].device.unitNumber = 5
    

    sets the number of SCSI to 5. A value of 0 in the number 0 SCSI: 5 is defined by the SCSI controller. So if you have a SCSI controller then the first number will always be 0.

    I don't know what you mean with "I know not how to do or not to do things if the fields are null or not.".

  • Auto-tagging problem

    I've enabled auto-tagging on my script, and when I tried to log in again to see the changes, my script would not be responsible. Now, I can't get in my script at all.

    Are you still facing this problem?

    Can you please leave us an email mentioning your username email and the name of this script to DL-AdobeStory-supportadobecom?

  • Text field problem

    Hi, who can help me with this

    I've done a few members bij field using insert-> control-> field = 1 domain name

    and I did I got the movie the following lines of script

    put vacuum in the field 1 = to start with a blank

    then I put this line for the random words

    put random word (5) of "open zien gaan few minute" in field 1

    the problem is that the field is not considered to be a field

    and so far there is no display text

    TIA

    Herman

    Assuming that really name you your field "Field 1" then try:

    put word at random (5) of "open zien gaan few minute" in the field "Field 1"

  • JavaScript, protecting and opening field problem

    I have a form with two fields that I don't want the user to fill out. The first txtCIC of field is at the top of the form and occurs only once. The second field txtPICode is an instance of line that the user creates the need. I have another field identified for the person who manages the form to access these two fields protected by entering a code. After update of these two areas, the code is removed in order to protect the fields again.

    I have inserted the script into the layout event: loan.

    if (this.rawValue == '1234') { }

    PR20. Body.sfFrame.sfProperty.txtCIC.access = 'open '.

    PR20. Body.sfFrame.sfRows.txtPICode.access = 'open '.

    }

    else {

    PR20. Body.sfFrame.sfProperty.txtCIC.access = 'protected ';

    PR20. Body.sfFrame.sfRows.txtPICode.access = 'protected ';

    }

    The script prevents entry at both fields until the value "1234" is entered and removed. My problem is that if I create more than one instance only one rank one is protected.

    Can someone help me please?

    Hello

    This requires a loop to search for all instances of the fields you want.

    Place this script in the event: exit.

    var nRow = xfa.resolveNodes("PR20.Body.sfFrame.sfProperty[*]");
    var nTestValue = "1234";
    
    for (var i = 0; i < nRow.length; i += 1) {
              nRow.item(i).txtCIC.access = this.rawValue === nTestValue ? "open" : "protected";
              nRow.item(i).txtPICode.access = this.rawValue === nTestValue ? "open" : "protected";
    }
    
  • Auto save problem

    First 5.5

    I got my self entity to 50 versions of backup at 5 min intervals and I find when the auto record number reached 50 more early for those who are not replaced. The program always comes up with 'save project' every 5 minutes, but I can't find where it is they save (or even at all). I just noticed this problem (after a premature crash). A couple of months a go, I did a reinstall of Win 7 and 5.5 production premimum, I don't have this problem when I had only 5.5 installed first. Any thoughts...

    RMK

    Look at the Date of modification.  This will give you the most common auto save.

  • iOS text field problem.

    I need the user to enter a Word, so I added a simple text field to the stage. However, it behaves strangely on the real device (iPod Touch). Attached are two screenshots that show how the font size increases when the input is activated. Everyone knows about this problem?IMG_0013.PNGIMG_0014.PNG

    Hello

    I think that you have specified a textFormat to text. You must add the following

    Assuming that this is the format

    var txtFormat:TextFormat = new TextFormat();

    txtFormat.size = 20;

    T1 = new TextField();

    T1.defaultTextFormat = txtFormat;

    Apply the default text format that we just put in the text that is already in the text field ('g')

    Otherwise the default text format apply to * new * text * typed * in the text field!

    Without this, the original text in text fields ('g') will use the default value for a

    Flash text (Times New Roman 12pt), rather than the defaultTextFormat (Times New Roman 20pt) field.

    T1.setTextFormat (T1.defaultTextFormat);

    addChild (t1);

    This affects any existing text in the text field in the specified format (making it the same as the default value). Now, when the text field is rendered first uses the default format that you set, and when you type also uses this same format, and so the format is no longer able to change.

    I hope this helps.

    Samia

  • Transaction GIS Auto numbering problem

    Hello

    We have set up the global intercompany system and use for several months in production (11i - 11.5.8).
    When you create a transaction of GIS mannual, the numbering of the transaction is set to auto apart from open entoilees transactions (where another set of numbering with - post-fix IMP).

    Recently when we audit transactions after Manual IC000... IC00 52... 63 created.
    The numbering series jumped * 10 * numbers without assign transactions.

    Since it is a feture of oracle, is it a bug or any idea what's past?

    Thank you!

    Mischievous.

    Hello

    All sequences maintained by Oracle, Oracle will retain a number in its Cache for performance problems.

    Issues related to this cache can be cleared and that numbers can be ignored by the system, stoppage abrupt and other databases.

    You can see the cache of Application Developer-> Application-> database-> sequence.

    Hope this is useful

    Kind regards
    Sridhar

Maybe you are looking for

  • Firefox for windows?

    Mr President, it is a humble request, please make Firefox for windows phone Lumia, I use Nokia Lumia 520 and I tired of bt using its internet browser explorer, I love FF that's why I write a question you bt not to google for chrome, please do FF to L

  • Satellite A200 overheating issues

    I got my A200 2.2 GHz Core 2 Duo, 2 x 160 GB in Raid 0, 512 MB ATI Mobility HD2600, 2 GB DDR2 667 around the Christmas period in 2007, since I bought it I had a major problem that has never been corrected under my warranty. Laptop overheating, overhe

  • split a string using any delimiter and display a table

    Hello I'm trying to split a delimited string and an array of the output results. I come from a background of .net and c# code I would use would be Dim myString As String = "mystring\r\nto\r\nsplit"; String [] myString = mystring. Split (newchar [] {'

  • Outlook express crashes when connecting with the mail server

    Outlook express 6 crashes when the connection with the mail server, please advise, thank you!

  • Free upgrade of Windows 10 0xc0000022 error code

    Hello I get the above error when I install, I tried several times but same thing happens initially all controls show my pc is compatible as well any ideas would be appreciated Thank you