DOUBLE_CLICK and LOOP
Hi all!
I have 2 internal tables g_t_mbew and g_t_sloc.
g_t_mbew is appended trough loop into output table itab_custdata of ALV list.
after display of the first ALV i would like to trigger DOUBLE CLICK event on that ALV. DOUBLE_CLICK should trigger an output of another screen.
My question is as follows: how can i loop at internal table g_t_sloc and search only records that correspond to the DOUBLE_CLICKED row, my search criteria should be MATNR field.
with:
READ TABLE g_t_sloc INTO wa_sl INDEX e_row-index.
i only get one record, how can i retrieve all the record that have same MATNR in g_t_mbew and g_t_sloc????
thanx!
Hi
Below is the reply to each of your questions:
1. How to trigger Double-click?
A. In the PBO of screen, set PF-STATUS. In the PF-STATUS, activate the Function code 'PICK' (F2). Thats all. Now when u double click, the ok_code field will contain the value 'PICK'.
2. How to identify the double clicked record? In the PAI of the screen, write this code.
DATA t_rowids TYPE lvc_t_roid OCCURS 0.
*& Module USER_COMMAND_0100 INPUT
PAI for Screen 100
MODULE USER_COMMAND_0100 INPUT.
REFRESH t_rowids.
CALL METHOD obj_alv_grid->get_selected_rows
IMPORTING
et_row_no = t_rowids.
<b>Here t_rowids will contain the row number which is double clicked.</b>
READ TABLE t_rowids INDEX 1.
READ TABLE itab INDEX t_rowids-row_id.
<b> Now itab work area contains the Double clicked record. ITAB is the Internal table displayed in the first screen.</b>
3. how can i loop at internal table g_t_sloc and search only records that correspond to the DOUBLE_CLICKED row, my search criteria should be MATNR field?
LOOP AT g_t_sloc INTO wa_sl WHERE matnr EQ itab-matnr.
Do your processing here.
ENDLOOP.
Same way for g_t_mbew.
Please dnt forget to award points if this was helpful.
Similar Messages
-
I just finished creating a movie using IMovie and want to burn it to a DVD and loop it. Since I just purchased this mac it looks like they no longer include IDVD. Is there something out there to help me do this. I am new to MAC and any help would be greatly appreciated. Thanks
There is free open source software called Burn that will burn DVDs. Here is a link.
If you wish to pay for software, there are many, including TOAST TITANIUM from Roxio. Apple's retail copy of iLife 11, and Apple's Compressor.
Of these, I would say that iDVD is known for being able to create very professional looking DVDs with intros, menus, lots of interesting templates.
Toast is much simpler and the menus and templates are more plain.
Compressor is a professional tool that does a lot more than make DVDs. Don't expect much in the way of menus or templates.
Burn, I have never tried, since I have iDVD and Toast for those ocasions when I need to burn a DVD. However, since it is free, I think it is worth a try.
Each software package is a little different, but in general, in iMovie, you can use the SHARE menu to SHARE/MOVIE in Large size. Save the movie to your desktop or someplace you can easily find it. Then drag it into the tool of your choice. You can alsouse SHARE/MEDIA BROWSER/LARGE if you have iDVD or Toast. -
Problem with java swing button and loop
Problem with java swing button and loop
I�m using VAJ 4.0. and I�m doing normal GUI application. I have next problem.
I have in the same class two jswing buttons named start (ivjGStart) and stop (ivjGStop) and private static int field named Status where initial value is 0. This buttons should work something like this:
When I click on start button it must do next:
Start button must set disenabled and Stop button must set enabled and selected. Field status is set to 1, because this is a condition in next procedure in some loop. And then procedure named IzvajajNeprekinjeno() is invoked.
And when I click on stop button it must do next:
Start button must set enabled and selected and Stop button must set disenabled.
Field status is set to 0.
This works everything fine without loop �do .. while� inside the procedure IzvajajNeprekinjeno(). But when used this loop the start button all the time stay (like) pressed. And this means that a can�t stop my loop.
There is java code, so you can get better picture:
/** start button */
public void gStart_ActionEvents() {
try {
ivjGStart.setEnabled(false);
ivjGStop.setEnabled(true);
ivjGStop.setSelected(true);
getJTextPane1().setText("Program is running ...");
Status = 1;
} catch (Exception e) {}
/** stop button */
public void gStop_ActionEvents() {
try {
ivjGStart.setEnabled(true);
ivjGStart.setSelected(true);
ivjGStop.setEnabled(false);
getJTextPane1().setText("Program is NOT running ...");
Status = 0;
} catch (Exception e) {
/** procedure IzvajajNeprekinjeno() */
public void IzvajajNeprekinjeno() { //RunLoop
try {
int zamik = 2000; //delay
do {
Thread.sleep(zamik);
PreberiDat(); //procedure
} while (Status == 1);
} catch (Exception e) {
So, I'm asking what I have to do, that start button will not all the time stay pressed? Or some other aspect of solving this problem.
Any help will be appreciated.
Best regards,
TomiThis is a multi thread problem. When you start the gui, it is running in one thread. Lets call that GUI_Thread so we know what we are talking about.
Since java is task-based this will happen if you do like this:
1. Button "Start" is pressed. Thread running: GUI_Thread
2. Event gStart_ActionEvents() called. Thread running: GUI_Thread
3. Method IzvajajNeprekinjeno() called. Thread running: GUI_Thread
4. Sleep in method IzvajajNeprekinjeno() on thread GUI_Thread
5. Call PreberiDat(). Thread running: GUI_Thread
6. Check status. If == 1, go tho 4. Thread running: GUI_Thread.
Since the method IzvajajNeprekinjeno() (what does that mean?) and the GUI is running in the same thread and the event that the Start button has thrown isn't done yet, the program will go on in the IzvajajNeprekinjeno() method forever and never let you press the Stop-button.
What you have to do is do put either the GUI in a thread of its own or start a new thread that will do the task of the IzvajajNeprekinjeno() method.
http://java.sun.com/docs/books/tutorial/uiswing/index.html
This tutorial explains how to build a multi threaded gui.
/Lime -
DOUBLE_CLICK and MOUSE_DOWN on Button
I am trying to utilize DOUBLE_CLICK and MOUSE_DOWN for Button control. But they both are not working together.
Whenever I activate MOUSE_DOWN event it simply disables DOUBLE_CLICK
Code:
// _btn is my Button object
_btn.doubleClickEnabled = true;
_btn.addEventListener(MouseEvent.DOUBLE_CLICK, doubleClickHandler); // Handle double click event
_btn.addEventListener(MouseEvent.MOUSE_DOWN, doDrag); // Handle mouse down for enabling drag event - Register event with DragManager
But in this case only MOUSE_DOWN event gets detected. Is it the expected behaviour of Event Handler or I can handle both events?
Output Expected: Both events should be handled.If you are calling a doDrag method immediately on mouse down, then focus will be removed from the button and pushed onto the dragproxy. On mouse down, you need to defer the drag method until the user actually moves the mouse while the mouse button is down. You might add an event listener for MouseMove and MouseUp, on the MouseDown event, and remove those listeners on MouseUp or MouseMove. Once you hit the handler for the MouseMove event, you know the user is dragging, and not doubling clicking.
A word of advice would be to add in additional logic to look for pixel offsets prior to deciding that your user is not double clicking, but instead attempting to drag. In this case, on mouse down you would trap the original MouseX and MouseY and store those values locally. Then you wait until your user has moved the mouse while the button is down at least 3-5 pixels in any direction before starting the drag. The reason is that if you only look for mouseMove, the user might have accidentally moved the mouse 1 pixel in the middle of a click (e.g. when the mouse button was actually down) and thus did not really mean to drag. -
Hello.... I already loaded logic 9 on my laptop hard drive... I would to load all the samples and loops on an external drive... Do I need to reinstall from DVD's or can I drag and drop?
Thank you.... Would you know where they would be on my hard dive? Are they all together?
-
After first installing the new Mountain Lion upgrading Lion on my Macbook Pro was a little slow, so I decided to format and install Mountain Lion via a thumb drive. After installation on my Macbook Pro was restarting all the time and showing a black screen with codes on the screen. I decided to reformat and reset the PRAM, and that seems to have worked. Occasionally a black screen appears with the codes and my macbook restarts again. Last night I updated the Mountain Lion and error and looping retornartam. I thought I had lost all my works, do more entered in the login screen. I turned off my macbook, went to sleep and this morning I called and finally worked Do not know what's going on in my friends' macbook not occur this problem. The macbook them is the 2011 13 "i5 2.0Ghz and another 2010 and they both work perfectly with the Mountain Lion.
Below is the error that occurred this morning after login.
Interval Since Last Panic Report: 1690 sec
Panics Since Last Report: 1
Anonymous UUID: 67D1DCE1-6759-7BF0-6682-40BCBB09D01B
Thu Sep 20 07:24:10 2012
panic(cpu 2 caller 0xffffff80206b7bd5): Kernel trap at 0xffffff8020687d02, type 14=page fault, registers:
CR0: 0x0000000080010033, CR2: 0x00007ccd02000009, CR3: 0x00000000228a6000, CR4: 0x00000000000606e0
RAX: 0x00007ccd02000001, RBX: 0x000000000000003e, RCX: 0xffffff8020cbd000, RDX: 0x000000000000003e
RSP: 0xffffff8110da3720, RBP: 0xffffff8110da3740, RSI: 0xffffff8031ef80c8, RDI: 0xffffff8020cbd000
R8: 0xffffff8031ef7750, R9: 0xffffff8031ef0438, R10: 0xffffff8020cbcc20, R11: 0xffffff814c6e0000
R12: 0xffffff8033b0ec00, R13: 0xffffff8033b0ecb0, R14: 0x00000000000000c1, R15: 0xffffff8031ef0438
RFL: 0x0000000000010296, RIP: 0xffffff8020687d02, CS: 0x0000000000000008, SS: 0x0000000000000010
Fault CR2: 0x00007ccd02000009, Error code: 0x0000000000000002, Fault CPU: 0x2
Backtrace (CPU 2), Frame : Return Address
0xffffff8110da33c0 : 0xffffff802061d626
0xffffff8110da3430 : 0xffffff80206b7bd5
0xffffff8110da3600 : 0xffffff80206ce4ed
0xffffff8110da3620 : 0xffffff8020687d02
0xffffff8110da3740 : 0xffffff802065f445
0xffffff8110da38a0 : 0xffffff8020681b58
0xffffff8110da3bf0 : 0xffffff802065e1b4
0xffffff8110da3c50 : 0xffffff8020a52e4f
0xffffff8110da3d40 : 0xffffff8020a53052
0xffffff8110da3d70 : 0xffffff7fa1e35434
0xffffff8110da3de0 : 0xffffff7fa1e2412f
0xffffff8110da3e10 : 0xffffff7fa1e33afe
0xffffff8110da3e60 : 0xffffff8020a3181b
0xffffff8110da3ea0 : 0xffffff8020a3133e
0xffffff8110da3f30 : 0xffffff8020a2d2d0
0xffffff8110da3f70 : 0xffffff8020a31e99
0xffffff8110da3fb0 : 0xffffff80206b26b7
Kernel Extensions in backtrace:
com.apple.driver.AppleIntelHD3000Graphics(8.0)[EAD976F9-7469-3F17-AB8E-6A039213 8DCB]@0xffffff7fa1e06000->0xffffff7fa1e67fff
dependency: com.apple.iokit.IOPCIFamily(2.7.1)[9901C237-547C-3B52-99DE-C4870A19E2B5]@0xffff ff7fa0caf000
dependency: com.apple.iokit.IONDRVSupport(2.3.5)[86DDB71C-A73A-3EBE-AC44-0BC9A38B9A44]@0xff ffff7fa11fc000
dependency: com.apple.iokit.IOGraphicsFamily(2.3.5)[803496D0-ADAD-3ADB-B071-8A0A197DA53D]@0 xffffff7fa11b9000
BSD process name corresponding to current thread: kernel_task
Mac OS version:
12C54
Kernel version:
Darwin Kernel Version 12.2.0: Sat Aug 25 00:48:52 PDT 2012; root:xnu-2050.18.24~1/RELEASE_X86_64
Kernel UUID: 69A5853F-375A-3EF4-9247-478FD0247333
Kernel slide: 0x0000000020400000
Kernel text base: 0xffffff8020600000
System model name: MacBookPro8,1 (Mac-94245B3640C91C81)
System uptime in nanoseconds: 22884276012
last loaded kext at 22356664762: com.apple.driver.AppleMikeyHIDDriver 122 (addr 0xffffff7fa1d76000, size 20480)
loaded kexts:
com.apple.driver.AppleMikeyHIDDriver 122
com.apple.driver.AppleHDAHardwareConfigDriver 2.3.1f2
com.apple.driver.AppleHDA 2.3.1f2
com.apple.driver.AppleUpstreamUserClient 3.5.10
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.ApplePolicyControl 3.2.11
com.apple.driver.AppleIntelHD3000Graphics 8.0.0
com.apple.driver.AppleSMCPDRC 1.0.0
com.apple.driver.ACPI_SMC_PlatformPlugin 1.0.0
com.apple.driver.AppleLPC 1.6.0
com.apple.driver.AppleBacklight 170.2.3
com.apple.driver.AppleMCCSControl 1.0.33
com.apple.iokit.IOBluetoothUSBDFU 4.0.9f33
com.apple.iokit.BroadcomBluetoothHCIControllerUSBTransport 4.0.9f33
com.apple.driver.AppleMikeyDriver 2.3.1f2
com.apple.driver.SMCMotionSensor 3.0.2d6
com.apple.driver.AppleSMCLMU 2.0.2d0
com.apple.driver.AppleIntelSNBGraphicsFB 8.0.0
com.apple.driver.AppleMuxControl 3.2.11
com.apple.driver.AppleUSBTCButtons 235.4
com.apple.driver.AppleUSBTCKeyEventDriver 235.4
com.apple.driver.AppleUSBTCKeyboard 235.4
com.apple.driver.AppleIRController 320.15
com.apple.driver.AppleFileSystemDriver 3.0.1
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 34
com.apple.iokit.SCSITaskUserClient 3.5.1
com.apple.driver.XsanFilter 404
com.apple.iokit.IOAHCIBlockStorage 2.2.2
com.apple.driver.AppleSDXC 1.2.2
com.apple.driver.AppleUSBHub 5.2.5
com.apple.iokit.AppleBCM5701Ethernet 3.2.5b3
com.apple.driver.AppleAHCIPort 2.4.1
com.apple.driver.AirPort.Brcm4331 602.15.22
com.apple.driver.AppleFWOHCI 4.9.6
com.apple.driver.AppleUSBEHCI 5.4.0
com.apple.driver.AppleUSBUHCI 5.2.5
com.apple.driver.AppleEFINVRAM 1.6.1
com.apple.driver.AppleSmartBatteryManager 161.0.0
com.apple.driver.AppleACPIButtons 1.6
com.apple.driver.AppleRTC 1.5
com.apple.driver.AppleHPET 1.7
com.apple.driver.AppleSMBIOS 1.9
com.apple.driver.AppleACPIEC 1.6
com.apple.driver.AppleAPIC 1.6
com.apple.driver.AppleIntelCPUPowerManagementClient 196.0.0
com.apple.nke.applicationfirewall 4.0.39
com.apple.security.quarantine 2
com.apple.driver.AppleIntelCPUPowerManagement 196.0.0
com.apple.driver.DspFuncLib 2.3.1f2
com.apple.iokit.IOAudioFamily 1.8.9fc10
com.apple.kext.OSvKernDSPLib 1.6
com.apple.iokit.IOSurface 86.0.3
com.apple.iokit.IOBluetoothFamily 4.0.9f33
com.apple.driver.AppleThunderboltEDMSink 1.1.8
com.apple.driver.AppleThunderboltEDMSource 1.1.8
com.apple.driver.AppleThunderboltDPOutAdapter 1.8.5
com.apple.driver.AppleHDAController 2.3.1f2
com.apple.iokit.IOHDAFamily 2.3.1f2
com.apple.driver.IOPlatformPluginLegacy 1.0.0
com.apple.driver.IOPlatformPluginFamily 5.2.0d16
com.apple.iokit.AppleBluetoothHCIControllerUSBTransport 4.0.9f33
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.iokit.IOFireWireIP 2.2.5
com.apple.driver.AppleSMC 3.1.4d2
com.apple.driver.AppleGraphicsControl 3.2.11
com.apple.driver.AppleBacklightExpert 1.0.4
com.apple.iokit.IONDRVSupport 2.3.5
com.apple.iokit.IOGraphicsFamily 2.3.5
com.apple.driver.AppleThunderboltDPInAdapter 1.8.5
com.apple.driver.AppleThunderboltDPAdapterFamily 1.8.5
com.apple.driver.AppleThunderboltPCIDownAdapter 1.2.5
com.apple.driver.AppleUSBMultitouch 235.7
com.apple.iokit.IOUSBHIDDriver 5.2.5
com.apple.driver.AppleUSBMergeNub 5.2.5
com.apple.driver.AppleUSBComposite 5.2.5
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.5.1
com.apple.iokit.IOBDStorageFamily 1.7
com.apple.iokit.IODVDStorageFamily 1.7.1
com.apple.iokit.IOCDStorageFamily 1.7.1
com.apple.iokit.IOAHCISerialATAPI 2.5.0
com.apple.iokit.IOSCSIArchitectureModelFamily 3.5.1
com.apple.driver.AppleThunderboltNHI 1.6.0
com.apple.iokit.IOThunderboltFamily 2.1.1
com.apple.iokit.IOEthernetAVBController 1.0.2b1
com.apple.iokit.IOUSBUserClient 5.2.5
com.apple.iokit.IOAHCIFamily 2.2.1
com.apple.iokit.IO80211Family 500.15
com.apple.iokit.IONetworkingFamily 3.0
com.apple.iokit.IOFireWireFamily 4.5.5
com.apple.iokit.IOUSBFamily 5.4.0
com.apple.driver.AppleEFIRuntime 1.6.1
com.apple.iokit.IOHIDFamily 1.8.0
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 220
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.DiskImages 344
com.apple.iokit.IOStorageFamily 1.8
com.apple.driver.AppleKeyStore 28.21
com.apple.driver.AppleACPIPlatform 1.6
com.apple.iokit.IOPCIFamily 2.7.1
com.apple.iokit.IOACPIFamily 1.4
com.apple.kec.corecrypto 1.0
Model: MacBookPro8,1, BootROM MBP81.0047.B27, 2 processors, Intel Core i5, 2.4 GHz, 8 GB, SMC 1.68f98
Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 512 MB
Memory Module: BANK 0/DIMM0, 4 GB, DDR3, 1333 MHz, 0x0198, 0x393955353432382D3034302E413031472020
Memory Module: BANK 1/DIMM0, 4 GB, DDR3, 1333 MHz, 0x0198, 0x393955353432382D3034302E413031472020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.106.98.81.22)
Bluetooth: Version 4.0.9f33 10885, 2 service, 11 devices, 1 incoming serial ports
Network Service: Wi-Fi, AirPort, en1
Serial ATA Device: Hitachi HTS545050B9A302, 500,11 GB
Serial ATA Device: MATSHITADVD-R UJ-8A8
USB Device: hub_device, 0x0424 (SMSC), 0x2513, 0xfd100000 / 2
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd110000 / 3
USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8509, 0xfa200000 / 3
USB Device: hub_device, 0x0424 (SMSC), 0x2513, 0xfa100000 / 2
USB Device: BRCM2070 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0xfa110000 / 5
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x821a, 0xfa113000 / 7
USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0252, 0xfa120000 / 4
Is there a hardware problem?
thank youBefore you upgrade, make sure all your software supports it based on post July, 25, 2012 reports on
http://roaringapps.com/apps:table
Reports prior to this date are unreliable, as they are likely with beta releases of Mountain Lion to developers. Other pitfalls to realize include:
https://discussions.apple.com/docs/DOC-3761 -
I just bought 15' Mac book pro. as i work a lot on Garageband. I even downloaded all the drummers and loops to update the new Garageband 10.0.1
now my problem is that all my past work which i did on older version on GB, has missing sounds in it. so here are my questions
1. DO i have to install JAMPACKS on my new Macbook pro?
2. Are JAMPACKS still compatable with the new GB?
3. There is an UPDATE on the new GB on Appstore and once i click it, it goes to billing no detail is provided what this update is for so help!
thanks3. There is an UPDATE on the new GB on Appstore and once i click it, it goes to billing no detail is provided what this update is for so help!
See: This document explains what the in-App purchase is about.
Expanding GarageBand for Mac (v10.0) content with an in-app purchase
Do you still have your old Mac?
How did you migrate from the old Mac to the new Mac? Did you transfer your old software and documents using Setup Assistant? Then your old GarageBand '11 version should have been migrated, and all your instruments.
if you did not migrate GarageBand '11, copy your old Instruments Library and Loop Library over from the old mac. Copy the following folders to a thumbsdrive and merge the missing dontents into the corresponding folders on your new mac: (from the system library - the top level library folder on your Macintosh HD):
/Library/Application Support/GarageBand/
/Library/Audio/Apple Loops/
And if you would like to continue to use GarageBand '11 for access to missing features, copy also /Applications/GarageBand over, but to a subfolder of Applications. I recommend, to install the old GarageBand as well. It can be used in parallel to GB 10.0, and will come in handy, if your old projects are having problems.
1. DO i have to install JAMPACKS on my new Macbook pro?
2. Are JAMPACKS still compatable with the new GB?
The JamPacks are nice to have, a terrific collection of instruments and loops, but if you did not have them previously, that will not help with your missing instruments. You can instll them by buying Mainstage 3. They work well with GarageBand 10.0
-- Léonie -
Is there any way to have a COMPLETE list of all samples and loops ( Logic 8
I'm sure it's been posted previously, but anyway, I'm looking to buy new Apple Loops libraries and I have faced the fact , that many of the sounds and loops produced by third parties manufacturers have been already included in Logic installation discs.
I have a list of Apple Loops DVD's that have been included with Logic somewhere, the problem is, Apple didn't post ( I believe) the credits of all 3rd party manufacturers that have produced these libraries that are included with Logic or Garage band. Is there any way to have a COMPLETE list of all samples and loops that are included with Apple DAW's so I wouldn't duplicate anything ? I'm pretty much positive that Apple had other companies to sound design and sample all libraries for them, so is there also a way to have a list of those manufacturers? Again, the objection is to start upgrading the sound library without any possible duplication?
Thanks in advance!Chris, I certainly don't mind additional questions and postings.
I believe there are many issues with Apple Loops and Logic that need to be resolved and people need to be aware of that. Unfortunately, in opposite to the old "german" version of Logic , there's no lifetime tech support, you can't even call and ask the question after 60 days , which isn't right for a professional software of this level, especially considering the fact that many things still remain vague in Logic even for developers and tech support people!( believe me, I've called and asked!)
Issues like that need to be resolved over the phone with the company, period!
One thing I also learned over the years as a Mac OSX user, if something doesn't work, don't mess with it. Delete your drive and re-install everything. This is very frustrating , I know, but unfortunately this is the only way to deal with OSX issues, if you got a problem with your system, don't try to fix it. It's never gonna be the same again. I know , it's off the topic a little bit, but if your content is missing from the system files, before installing your new Logic, back up your important files, wipe up your drive and clean install Mac OSX , run updates and then install the Logic. Most likely , everything will be in it's place, at least 90% or more. I gave up trying to make two system in my house to be compatible 100% , but it's OK if they're 90% or more identical. I spent enormous amount of time trying to find out what's missing and where, I visited most of the forums and there's no clean answer.
Message was edited by: Moderator -
Dear programmer
I'm new to JSF. I have almost finished to read all the tutorial and there is something that bothere me. In all the the examples, there is no use of condiion statements (if) or loops (for, while). How is it possible to program without them?
I guess that with renderer I can do things that I could do with if statement and with UIData component I can create loop, but is it enough? It seems very odd to me that there are no conditions or loops.
(Or maybe there are and I just not aware to it)
For example I have a frame that is compounded from 2 forms. The first enable to user to search something. The second shows the results. I don't want the form of the results to be shown if there are no results. Can it be done with renderer?
In order to show the results I need a loop. Is UIData enough?I have a frame that is compounded from 2
forms. The first enable to user to search something.
The second shows the results. I don't want the form
of the results to be shown if there are no results.
Can it be done with renderer?
In order to show the results I need a loop. Is UIData
enough?rendered="#{myBackBean.resultsAvailable}"
You should have had more extensive JSF tutorial or an introductory book.
I recommend Hans Bergsten's JavaServer Faces from O'Reilly, in which you could see
many example code for conditionals and loops without using 'if', 'while' nor 'for'. -
Hello.
I need help creating a cursor and loop that will update a column based on data from another column. I keep getting the following errors. Any suggestions? These identifiers are valid tables in columns in my data base.
SQL> DECLARE
2
3 CURSOR c1 IS
4 SELECT SectionID, Coursename, StudentID, FinalGrade from Registration, Section, Grade WHERE registration.sectionid = grade.sectionid and registrationid.studentid = grade.studentid;
5
6 v_SectionID number(10);
7 v_CourseName varchar(20);
8 v_StudentID number(10);
9 v_FinalGrade varchar2(5);
10
11 BEGIN
12
13 OPEN c1;
14
15 LOOP
16 FETCH c1
17 INTO v_SectionID, v_CourseName, v_StudentID, v_FinalGrade;
18 EXIT WHEN c1%NOTFOUND;
19
20 update grade
21
22 SET FinalGrade = translate(substr(v_CourseName,-1,1),'ABCDEFGHIJKLMNOPQRSTUVWXYZ','AAAAAABBBBBCCCCCDDDDEEEEEE')
23
24 where Grade.StudentID = Registration.StudentID;
25
26 END LOOP;
27 CLOSE c1;
28 END;
29 /
SELECT SectionID, Coursename, StudentID, FinalGrade from Registration, Section, Grade WHERE registration.sectionid = grade.sectionid and registrationid.studentid = grade.studentid;
ERROR at line 4:
ORA-06550: line 4, column 140:
PL/SQL: ORA-00904: "REGISTRATIONID"."STUDENTID": invalid identifier
ORA-06550: line 4, column 3:
PL/SQL: SQL Statement ignored
ORA-06550: line 24, column 27:
PL/SQL: ORA-00904: "REGISTRATION"."STUDENTID": invalid identifier
ORA-06550: line 20, column 3:
PL/SQL: SQL Statement ignored863737 wrote:
I am taking a intro course online so I am trying to teach myself this. The most basic rule for designing and writing good Oracle code that will perform and will scale is to use SQL for what it is good at and using PL/SQL for what it is good at. And between the two, SQL is by far superior when it comes to crunching data in the database.
The simple maxim is Maximize SQL. Minimize PL/SQL.
What you want to do with that PL/SQL code can be done using SQL only. And since you are learning SQL and PL/SQL, it is very important that you learn the correct way to do this.
Have a look at Oracle® Database SQL Language Reference guide.
The update syntax supports:
UPDATE <dml_expression_clause>
Where this +<dml_expression_clause>+ is a SELECT statement (aka an in-line view) - that can contain joins.
Simple example. You join tables t1 and t2 to identify the rows in t1 to update. The +<dml_expression_clause>+ will define this join. The actual update part (using the SET clause) will update the relevant rows in t1.
This is also called an updatable view - though the +<dml_expression_clause>+ does not need to use an actual view.
Have a look at AskTom for a discussion on this. Also note that you can also create a view and define an "instead-of" trigger on the view - this particular feature enhances the ability to update DML expressions - but is not a prerequisite.
Note that there can be very significant performance degradation by NOT using an UPDATE on a +<dml_expression_clause>+ and instead coding that manually via PL/SQL.
So do yourself a favour and learn the CORRECT way to resolve the type of UPDATE problem you have. -
Wait and loop cycles in Workflow
We have some order management workflows that have built in wait and loop cycles where the wait time is extremely low. 2 minutes. We have noticed that this (possibly) is causing WF BG process to run extremely long, looping through the same items multiple times in a request. We think that we need to extend those wait times and have the following questions.
-What are the downsides of using small wait times in WF.
-What are some recommendations on how small the wait times can be in "polling" logic using workflows.
Thanks.Small wait times are greedy and can kill your performance. I am not sure why you need to check whether the hold on the order is released every 2 mins when the WBG itself runs for more than that amount time (as an example). In fact you run the Validate workflow program (by pressing in the Transaction Type setup in OM, it will tell you the same thing).
An hour is good enough. You can run one instance of WBG on emergency basis (in the month end or as needed).
Also you can schedule multiple WBG runs with different parameter combinations.
Say one only checks the deferred workflows and the other one checks only timedout ones and they run independent and you make the program incompatible to itself so that they will not clash.
Also a lot depends on you volume of orders that are being processed by your WBG.
Also it increases your database tables volume as the history tables keep getting populated for every check.
Thanks
Nagamohan -
Syntax small fix (video autoplay and loop)
Hi, for the life of me I don't know where to put the autoplay and loop, here's my current attempt. the video loads but it doesnt play
vid.html('<video id= "video1" style="position: absolute;bottom: 0px; right: 0px; min-width: 100%; min-height: 100%; width: auto; height: auto; overflow: hidden" >' +
"<source src='video/video.mp4' type='video/mp4' autoplay= 'autoplay' loop= 'loop'/>" +
"<source src='video/video.webm' type='video/webm' autoplay= 'autoplay' loop= 'loop'/>" +
"<source src='video/video.ogg' type='video/ogg' autoplay= 'autoplay' loop= 'loop'/>" +
"</video>");
What am I doing wrong? (Apart from not understanding any code whatsoever!)You need the autoplay and loop in the video part of the code like this:
<video preload="auto" autoplay="true" loop="true" width="100%" height="auto">
How ever I do this in a completely different way 1st I set up a Html page holding the video and the code then I embed the video into Edge with an Iframe like so:
Html page:
<!DOCTYPE html>
<html>
<body>
<style type="text/css">
#video_background {
position: absolute; bottom: 0px; right: 0px; min-width: 100%; min-height: 100%; width: auto; height: auto; z-index: -1000; overflow: hidden; }
</style>
<div id="video_background"><video preload="auto" autoplay="true" loop="true" muted="true" volume="0" width="100%" height="auto">
<source src="folio.webm" type="video/webm">
<source src="folio.ogg" type="video/ogg">
<source src="folio.mp4" type="video/mp4">
Your browser does not support the video tag.
</video></div>
</body>
</html>
JQuery:
var container = sym.$('#Stage_Iframe');
var Video = ' <iframe width="100%" height="100%" frameborder="0" scrolling="no" src="video.html"></iframe>'
container.html(Video); -
Restart logic and looping logic in process flow
Is there any restart logic and looping logic in Oracle Warehouse Builder, process flow?
Hi,
The answer is NO. The curent version does not have restartable functionality. You have to have your own design for this.
ta
mahesh -
Opening a .mov file in full screen and loop
We have a .mov file that we need to automatically play full screen and loop in quicktime when the cumputer starts up. I can get the file to open, that was easy, but I can see know way to set quicktime to open in full screen or to set the file to loop. Any suggestions?
thanksAny help to increase the resolution quality of my DV file will be EXTREMELY HELPFUL.
For faster editing iMovie 08 & 09 uses single-field processing. This means every other horizontal line of the video is thrown out, which reduces the sharpness of the footage. iMovie 06 uses all of the image, I think you will find it looks better.
iMovie 06 and iDVD 09 is a terrific combination. -
Having a qt movie auto play and loop without controls
I have a qt movie that I want to place on a page in iweb - but i want it to autoplay and loop and do not want the controls to show at the bottom of the movie- can this be done?
thanksYes, and there's a couple different ways to do this. One way is to use a specially created QuickTime movie that will play and loop a remote movie. I've gone through some steps of how to do this here.
(turn your volume down, loud movie at the following link)
http://web.mac.com/makentosh/iWeb/zample/crab.html
Another way is to edit the .js file for that page so that you set the
autoplay to true,
controller to false,
loop to true,
and adjust the size of the movie to be 16 pixels shorter to account for the missing controller. I used part of THAT technique on some movies here.
http://web.mac.com/makentosh/iWeb/zample/abutton.html
Here are some more specific instructions. These are for audio, but with a few changes, could be for your video as well.
http://www.rowan-cottage.co.uk/Site/Autoplay%20Music.html
Maybe you are looking for
-
Block delivery creation if price has not been maitaned in sales order
Hi, I have the following issue., Say if have a sales order with 4 schedule lines, where the price has been updated only for 2 schedule lines. The order is incomplete. Is it possible to block deliveries been created if all the schedule line prices are
-
Authorizations to Create/Display table entries
Hi All, One of our requirement is to restrict the user from changing the entries in the table, however allow to create/display entries in the table, can this be achieved using authorization groups(Authority check objects) without writing any code i
-
Compiling problem in windows X
Hi, Windows XP runs java application but does not compile it. I get following message: 'javac' is not recognized as an internal or external command, operatable program or batch file. MS-DOS does not exists but a command line edits autoexec.nt having
-
Restrcting PO creation based on no of quotation
Hi, My client has below requirement. System should allow user to create PO provided there are minimum 3 quotations against the purchase requisition. Have you come across such scenarios in your experience.What is best way to realise the same. Regards,
-
WEIframe function-Report is displaying in a small box-webelements
Hi ALL I have used WEViewer function to show the new report in crystal reports. WEIFrame ("quadrantA", defaultreportA,2000,2000, "NO") But the report is showing in a small message box with scroll bars after clicking on the submit button by