loop problems
HelloI have a form with a tabular form which I use to manage issuing uniforms. The user connects to a requirement for an order and it is then updated with the elements which are classified and Qty.
I have update the central inventory problems. I added a process that runs when the button question is operated and should then loop through each product in the order, get the order quantity, get the amount of stock of the product and deduct the amount issued. The problem I have is that if I have more than one product issued at the same time the qtys are added for the following 2nd, 3rd etc., which gives a false inventory for example
Product 1 T-shirt, 1 order quantity, inventory reduced by 1.
Sweatshirt product 2, order quantity 1, inventory reduced by 2,
Pants product 3, order qty 1, inventory reduced by 3.
I tried several different modifications to the process but can't seem to get rid of the question, can someone help me
Here is the code of the process:
declare
number of terms;
Number of the DSB;
Number of the inv;
Start
If: P58_INVUP! = 1 then
C1 in (select prod_id, quantity of TEMP_ORDER_DETAILS where emp_order_id =: p58_ID) loop
DSB: = 0;
DSB: = c1.qty;
for c2 in (select the amount of TUNF_INVENTORY where PROD_ID = c1.prod_id) loop
Inv: = 0;
Inv: = c2.qty;
end loop;
as: = inv - DSB;
Update TUNF_INVENTORY set qty = as where PROD_ID = c1.prod_id;
as: = 0;
end loop;
Update TEMP_ORDERS set INV_UPDATE = 1 where ID =: P58_ID;
end if;
end;
Thank you
Scott
To avoid double coding it is better to code the update of the inventory using triggers. So independent of your orders whence (APEX, forms, SQL Loader, Java app), the inventory will be reduced by the amount ordered.
HTH
Roel
Tags: Database
Similar Questions
-
Equium M50-244: loop problem internal ati2dvag.dll
I had a M50-244 XP Home Edition (sp2) who have ATI onboard until I uninstalled it completely. The laptop has become totally useless vomit ati2dvag.dll inner loop problem and nothing seemed to heal so I decided to completely get rid of ATI.
It started with VGASAVE which, with a few adjustments, work is fine and so my machine now. I disabled the video as controller he kept coming up with "new hardware found" and I didn't load the drivers more who would do what he started crashing again.
Currently its on 'test' and I'm doing everything possible to see if it will crash once again, I hope not.
Maybe I need another driver and activate the video controller, but I am hated for doing anything more now that his works normally, finally!
Some said the installation of the graphics driver on the site omegadrivers.net and improves the performance of the graphics card.
Maybe an installation of the driver from the site could be useful.Check it out
-
Pressure sensor ground loop problem
Hello
I have an interesting problem, I hope someone can help me with.
I'm measuring pressure with a pressure sensor. We see a lot of noise with the measure, and I believe that we have a ground loop. I have checked the noise is 60 Hz. What is interesting is that the case of the pressure sensor is connected to the Earth. When we put on the sensor of metal pressure in the booth, we see the noise. When disconnect us the stand noise pressure sensor disappears. The stand is connected to the Earth. I'm feeding the sensor with a 24V power supply which is also connected to the Earth. I think that this is the ground loop.
My problem is that the 24V power supply should be grounded for safety and the I cannot isolate the ground pressure sensor.
I attached how I got the system wired. How to connect up to my analog input module pressure sensor OR 9215 to break the ground loop?
Thank you
Dan
Ahhhh Yes,
I have solved this problem. It is a ground loop. I had the field related to 2 places.
We have removed one of the references on the ground and poof everything worked fine.
One of the problems I've found is a reference of external power supplies and others do not. If you provide an additional reference to the Earth... Ground loop!
Ground loops can be mean terrible things. According to my experience, they are the number one electric goofiness and the noise causes.
I have compiled some resources on my website to help people
http://www.autosofttech.NET/resources
The best is field wiring and considerations of noise for analog signals
If you want the final word on the subject see this book
Techniques of reduction of noise in electronic systems
Hope that helps!
-
multiple inputs and nested loop problem
Hello world
I'm using Labview 2009.
I want to change the value of a variable by using the wheel or keyboard.
So I downloaded a button and the screws of the keyboard that suits my needs of multi-rotation forum.
These two screws are running inside a WHILE loop. Because I would be constantly updating the variable I will run my main screw that houses these two screws also looped a WHILE.
Problem is that while loop within a while loop I couldn't run my main VI because of this problem.
I tried in 2ways
1 including them as an auxiliary in my main VI but as the two screws screw contains a few other variables inside of the inside while loop that LabVIEW displays error as auxiliary screws will not work
2. I also tried to copy paste the two screws as it is in my main screw but could end up only in a lot of errors.
How to deal with this problem of nested while loops?
Please guide me.
Kind regards
Maury
You make a mistake of data flow. The outer loop can turn only if all of the code that he has completed. The structure of the event cannot complete because inside while loop has not finished, and if inside so that the loop ends, the loop cannot turn because the structure of the event stalls. You can only go to the next iteration after all both have completed, from the mess.
All you need to do to incorporate ALL the code inside the structure of the event. Attached, it's a simple project (LV 9.0), modify as necessary.
See if it makes sense for you. (there are a few minor bugs probably)
-
Case of Structure / while loop problems
Hello
I am trying to write a code that draws a random number whenever a key is pressed. The chart must be a random number on the y axis and the number of times that the button is pressed on the x-axis. I want to draw the last twenty random numbers. I use a while loop and a box structure. If the button is pressed, the case structure incruments the number of times where the button is pressed and generates a random number. I'm using shift registers to track the last twenty numbers generated. When the key not, registers to shift to day values incorrectly. My code is associated with this issue.
I know that the last value of the shift registers of wiring to the structure of the case will change the table across the last value when the button is not pressed. I know what causes the problem, but I don't know how to fix it. I would appreciate it if you have a look and give me some tips.
Thanks in advance.
Your problem is that the loop runs continuously and your values in the shift register are replaced when you do nothing.
There are a few ways around this. It would be simpler to use a Structure of the event. Another option is to simply store your table in the shiftregister. Use Rotate 1-d Array and replace a subset of table to update your chart. It is a little more robust and easier to use than using the history of the shift register.
But the absolute simplest, based only on what you told us, just use a graphic instead of a graph. A graph keeps a history. The length of the default history is 1024 samples, then you want to reduce that to 20. Then you just wire your random number right in the chart, and everything is done for you.
-
Hello!
I built this vi to record the data of air speed sensors two and analog signals that drive the two actuators. My problem is: the number of iterations, I put on the second image, the same number of iterations will be held at the third picture. The example below, I put initially the loop run for 20 seconds and the second loop to run for 3 minutes. When I run the program both loops ryn for 20 seconds. Any tips?
Concerning
It's because of the release of the first loop table. A for the loop performs an iteration to the smallest size of County or an array of N. You simply need to right click on the output, and then select disable indexing. No need to create an array of file names.
p.s. Get rid of the structure of the sequence. It is not necessary.
-
Table 1 d in the while loop problem
Hello world
I searched this problem in the forum, but seems only some positions quite didn't answer.
I'm stuck by saving the data in a while loop.
I have a while loop, within which there are two exits in each iteration, I want to add to a table, and then after the while loop is completed, I want to combine these two tables in a 2D array (since the release of them must be a pair in my case).
I tried 'Build array' and 'transpose array' and 'write in spreadsheet' element set, which maintains concerns me is how simply to add the result in a 1 d table during each iteration, these 2 outputs are in digital format, which prevent to directly create a table for it.
Any idea is appreciated,
Thank you
Chen Kunsheng
Here are some other ways to insert.
It may be useful
-
First iteration of a loop problem
I'm having a problem with the first iteration of a while loop. I want to save all the data a data acquisition over a period of time. In order to keep the unique 'small' file, I'm doing a VI that produce a new file every 10 min. about. But the first file I want to do is not due to the following problem:
The first time I use the DaqMX read in the loop, it returns a blank. Why does do that?
I'm not entirely sure why, but I just set the number of samples to a specific value so that you do not need the function of Ms. wait 100 in the loop.
Tone
-
Write on the worksheet while loop problem
Hello dear Labviewers. I have a 'writing on spreadsheet"with a table 2D DBL connected on it, but the problem occurs inside the while loop. I want exactly those time six values in my excel document, but it restarts after every "two seconds" and I cannot get rid of this problem. I want exactly the same numbers in the Excel document as it is in the table.
I tried to move the two "write to the spreadsheet' boxes outside the while loop, but the Excel document does not display a single value in the table, when I do this. It shows that the two headers
My second problem is rounded off on the numbers. Even if I wrote "%.6f" in the part of the format, it gives me a single decimal value.
Thanks in advance
Orlando
Orlando says:
Thanks for the help Ravensfan
But the "worksheet to write" not a not an output port, then how can I do this?
I downloaded my VI
I never said anything about writing about a spreadsheet file with an output port.
See the attached VI for changes. It's only the new data of this iteration of the loop that will write it on the spreadsheet file VI, not made all of the table from all iterations. There is an entry of table 1 d to the spreadsheet file.
-
Hello world!
I have a 16 GB Touchpad and I'm stuck in a boot loop (HP Logo appears and restart). I used doctor Web OS 3.0.4 and it has not fixed my problem. Is there another app that would rebuild the boot partition? Or a challenge for the same problem or really rebuild to factory settings?
Thank you!
Hello
I just wanted you to know I solved my problem. Here is the link I used.
http://Forum.xda-developers.com/showthread.php?t=1393647
I am very happy that everything is back online.
Thanks again
-
"Setup is preparing your computer for first use" loop problem
Hello, I was hoping you guys could help out me with a big problem, I ran across when trying to install Windows 7 on a desktop computer new, custom - build. I managed to successfully install my Windows 7 64-bit, it appeared, but when I try to run it, that I will meet a black screen that says "Setup is preparing your computer for first use" and it will stay there forever, I would say. I let it run all night and didn't go anywhere.
I tried to start in safe mode, and Windows was loading files sys32, he got to "Classpnp.sys" and it froze. After a few minutes, the screen is blacked out, and I got fired the familiar screen "Setup is preparing your computer for first use.
I bought the copy of Windows 7 nine FRY, there will be no problem with that. My HD is a (new) 240 GB PNY Optima SSD, my mobo is a (new) Z97X-SLI Gigabyte, and I have 16 GB of RAM. All these things have been recognized by my BIOS, it seems that everything is properly connected.
I tried to install Windows 7 on a second time and exactly the same thing happened. I also tried to repair the installation to start upward, but he finds no problems. Also a check of the memory and the disk has verified without any problem. The only things I plugged are my monitor, keyboard, and mouse.
Does anyone know of a workaround for this screen loop "first use"? Any help would be greatly appreciated.
Set of utilities to test for computer HARDWARE manufacturers:
Note: If you are Overclocking or use an automatic overclocking or BIOS power saving features, start by disabling: Intel EIST, Turbo Mode, Cool and pretty and fall back to the speed of stock as a starting point.
Disconnect any other (additional) internal hard drives and external USB devices.
Look for any loose hard drive power or cables SATA, graphics card or other power cables.
First run Memtest86 +:
It runs from a floppy disk or CD and should eliminate or confirm if one or more of your memory
sticks are bad or the values of the SPD in the BIOS are correct.
Let it run for as long as you can: 2,4,6,8 or several hours (at least 3 full passes), if no errors at that time then your ram is OK.
Memtest86 + Guide/How To (use the.) ISO to create a bootable CD)
http://www.overclockers.com/forums/showthread.php?t=409152
Test your hard drive
Intel® drive SSD Toolbox
https://Downloadcenter.Intel.com/Detail_Desc.aspx?AGR=Y&DwnldID=18455
Corsair SSD Toolbox:
http://www.Corsair.com/en-us/blog/2013/may/the-Corsair-SSD-Toolbox
Toolbox of Kingston:
http://www.Kingston.com/us/support/technical/sandforce_ssd_toolbox.aspx
OCZ Toolbox: http://ocz.com/consumer/download/firmware
Support PNY: http://www.PNY.com/support/contact-us
Samsung Magican review:
SanDisk SSD Toolkit: http://kb.sandisk.com/app/answers/detail/a_id/9328/
Seagate: http://www.seagate.com/support/internal-hard-drives/laptop-hard-drives/laptop-600-ssd/
Life of the SSD: http://ssd-life.com/
= Is installed after Windows =.
Device drivers: have you installed latest drivers from device of the manufacture of the motherboard?
Check their support site for the latest drivers as the CD that came with the computer
or motherboard may be older and less stable drivers.
Visit the download of the manufacture of the graphics card:
Download and install the most recent Windows 7 or 8 drivers for your card.
ATI: http://support.amd.com/us/gpudownload/Pages/index.aspx
NVIDIA: http://www.nvidia.com/Download/index.aspx?lang=en-us
See also the test of 'Smoke box' Nvidia or other demos: http://www.nvidia.com/object/cool_stuff.html#/demos
or equivalent ATI.
Prime 95:
http://www.Mersenne.org/freesoft/
It's a stand alone .exe file contained in an archive .zip.
Simply choose to run the 'stress test' option for 8 hours or more.
If your PC can pass this test, your memory and CPU
are very good (close the housing cover in order to maintain adequate ventilation)
Core Temp:
The temperature of each core of the processor.
Note: For the overclockers using stock radiator and cooling fan Intel/AMD you can expect
a range of 35 to 40 at idle and 60 to 65 C max temperature when running Prime95.
http://www.alcpu.com/CoreTemp/
CPU ID (CPUZ): http://www.cpuid.com/cpuz.php
Watch the clock speed of the CPU under various conditions of loading
(when using speed step technology Intel EIST).
#1 Note:
CPU - ID has two tabs - tab 'Memory' that shows the actual speed of the memory
and the "SPD" tab shows the nominal speeds for each memory location that is filled.
#2 Note:
Compare the two values, the actual speed of the memory must not exceed the rated speed of your memory.
CPUID HWMonitor: Hardware program that reads the sensors of health main PC monitoring systems.
voltages, temperatures, fans speed.
http://www.CPUID.com/HWMonitor.php
Speccy:
Advanced for your PC system information tool.
Need to know what's inside your computer?
No problem! Speccy will give you all the information you need.
Note: May or may not show the motherboard manufacturing.
Overview: https://www.piriform.com/speccy
Free version: https://www.piriform.com/speccy/download
Test of Stress of FurMark GPU (graphics card):
http://www.oZone3D.NET/benchmarks/fur/
Pass marks burn in test: http://www.passmark.com/
Burnin test, and their test bench at the same time give a good workout from all the major parts of Windows.
HD Tune:
Provides information of the car and has an option (tab scan error) to test your drive.
CrystalDiskInfo:
http://CrystalMark.info/software/index-e.html
User Manual: http://crystalmark.info/software/CrystalDiskInfo/manual-en/
Monitors the State of health and the temperature. Solid State Drives brackets (value of the software).
SpeedFan:
Monitors internal temperatures and has a function of analysis health online (SMART tab) for hard disks drive.
It displays your drives model number and compares your drive with other discs of the same brand and model.
Note: Unfortunately now includes a lot of bloatware, be very careful when installing remove bloatware.
http://www.almico.com/SpeedFan.php
GPU - Z:
A utility light, designed for you give information about your video card and GPU.
http://www.techpowerup.com/GPUZ/
PC WIZARD:
A powerful utility designed especially for detection of hardware, also analyses more.
He is able to identify a large scale of system components and supports the latest technologies
and standards.
http://www.CPUID.com/pcwizard.php
J W Stuart: http://www.pagestart.com
-
Windows 8 start "repair automatic Loop" problem - tried many Solutions, no disc.
Hello
I have a HP Pavillion desktop, about 3 months with 8 64-bit pre installed Windows (no separate disk). I, like apparently many others here and on the wider internet experienced the 'loop auto repair problem' and after reading and application of solutions kindly posted by various people, I'm still stuck with this problem.
I'm not a person of computer savvy, so if anyone here can give kindly help I would appreciate it fully.
This happened earlier today, and the problem had arisen once before, but I was able to perform a refresh of the system and while I didn't lose my apps could keep the data. Now, the system update States "there was a problem of your PC Refresh. Has been no change. "
I only want to do a factory reset the absolute last resort, I wasn't enough smart to foresee such a disaster I don't run no back ups of my files. Although I'm afraid that this problem would arise again.
To get to the repair window. I get the C:\WINDOWS\System32\Logfiles\Srt\SrtTrail.txt log file
(Trying to open the SrtTrail file results in a system of dialogue window saying "cannot find srttrail.txt, make a new"
I checked the forums here and from other sites, but the proposed solutions, the most important is the
http://answers.Microsoft.com/en-us/Windows/Forum/windows8_1-windows_update/how-to-fix-the-automatic-repair-loop-in-Windows-81/bfc92bc7-031f-45D4-b623-bcb4847d32fd
- I tried the solution "bcdedit" (in spite of not having a separate disk) 'The operation completed successfully', but to no avail.
- I can't access the SafeMode (will the said fair boot settings restart, which charge the same screen once again)
- Running chkdsk in CMD prompt, forces me to force a disassembly, I want to touch it because I do not understand and could break something...
- Change the priorities of the Bios gives an error message at startup (Boot device") not found, then it reverts to the"Windows Boot Manager ".
So my main questions are
- Is it possible to fix this problem, which can be done internally (except for factory reset and no third-party program part). I have an external hard drive if I can somehow extract the files.
- If there is a real difficulty in a situation similar to my problem and the situation) that has been said before (but I missed it somewhere) I couldn't link?
- If I perform a factory reset, I want to keep all my data, is it possible that I can do?
If I need to display data, please advise and I will try my best.
It teaches me a lesson to never do anything about computers without backup.
Automatic thanks for any assistance, anyone is able to give me.
Hi Will,
Thanks for posting your query in Microsoft Community.
It is regrettable that the computer is stuck in the loop of the repair. I'll be happy to help you with your query. I appreciate the effort made by you to try to solve the problem. However, in order to try the following steps, you require the installation of Windows 8 media.
Given that Windows 8 has been preinstalled on the computer, I suggest you to contact HP for help with the installation media. Once you get the installation media for Windows 8, try the following steps:
Step 1: Boot recovery environment with the installation of Windows 8 media.
It is another way to boot the PC and launch recovery tools when something goes wrong with the operating system.Please follow the steps below. Insert the DVD to install Windows 8 on DVD-ROM and restart your computer.
(a) once you start your computer by using the Windows DVD or the system repair disc, a black screen is displayed with the gray text "Press any key to boot from CD or DVD". Press a button on any.
(b), select the exact time and the type of keyboard.
(c) click on repair your computer in the lower left corner.
(d) select Troubleshooting to Choose an option screen.
(e) click Advanced options in the form of resolution of the problems .
(f) click Auto repair of Advanced Options screen.
(g) following, choose the operating system by clicking on its button.
(h) Windows 8 will then look for problems on the hard drives and verify that all required files are intact.Step 2: Run the restoration of the system of the Advanced Options screen.
System Restore to restore your computer to a previous state, quickly and easily without losing any of your files and personal settings. Sometimes when you install programs or drivers, they can affect some system settings and prevent other programs to function properly. You can use system restore to restore these settings to their previous state.You can follow the steps:
(a) once you start your computer by using the Windows DVD or the system repair disc, a black screen is displayed with the gray text "Press any key to boot from CD or DVD". Press a button on any.
(b), select the exact time and the type of keyboard.
(c) click on repair your computer in the lower left corner.
(d) select Troubleshooting to Choose an option screen.
(e) click Advanced options in the form of resolution of the problems .
(f) select System restore.Important: When you use system restore to restore the computer to a previous state, the programs and updates that you have installed after this date are deleted.
Do not hesitate to write to us in case you have any problems/concerns while working on your computer, we will be happy to help you.
-
Hi, I have a composition after effects CC 2015, five seconds of time, which makes a loop seamlessly. Look in the preview. But, when coded via SOUL the perfect loop has developed a slight delay, no matter what format I go to.
My client wants a flawless H.264 transport stream file, but it seems unable to provide this assistance SOUL. He's not a flash at the end of frame black (or white) - it is more than a break. Framework during a review of the framework does no additional frame or duplicate, so I'm stumped!
Strangely, a rendering directly to EI in a quicktime file works - transparent - perfectly... Until the audio is added to this same comp. A rendering of quicktime then results in a delay of the loop.
Anyone could create a perfect loop using After Effects and Adobe Media Encoder? I would be very grateful for any help. As it is, the customer suggests that I loop the comp in AE and return over a period of eight hours of video, to decrease the chances of spotting slight hiccups of viewers! Is not ideal.
This has been a problem for a dozen years that nobody seems ready to tackle. No one can get Quicktime, VLC or any other player to produce a perfect loop. There is always a useless break point loop. Someday someone will invent a player who can properly, buffer and a video loop without problem, but for now, no one seems to have done.
-
Cursors in PL/SQL for loop problem
Hello. I have a problem with line 6 in this code. It should write the name of each table as well as the number of tuples on the inside. However, he does not 'row.table_name' as the actual table name.
Declare the cursor tableNames IS select table_name from user_tables;
numberOfTuples number (10);
Start
for tableNames line
loop
Select count (*) in the numberOfTuples of row.table_name;
dbms_output.put_line(Row.table_name ||) « a » || numberOfTuples | "n tuples.");
end loop;
end;
/
ERROR on line 6:
ORA-06550: line 6, column 46:
PL/SQL: ORA-00942: table or view does not exist
ORA-06550: line 6, column 1:
PL/SQL: SQL statement ignored
Published by: 938330 on 3.6.2012 09:08Yes. You must use "immediate execution" here.
This SQL statement is a dynamic sql, that is, the full text is not known prior to execution.
If you ask a fixed table as a student, employee, etc... You can query the table directly.
Here, you generate the table dynamically via a cursor name. So here, Oracle is considering "row.table_name" in tabular form (as a student or employee) and saying table/view does not exist.
Kind regards
CSM. S/N -
Mail user send 10 times to the CC, I need to mail send only once to CC. Loop problem
Dear Sir.
In my application, I created a survey then it goes to HOD HOD assign to the group or Indivitual User.if HOD assign inquiry to ressemelable it to the group. Then send Mail to all users in the Group and send mail to the user who who after investigation.
Suppose that the Group has 10 users.
But now my problem is when I select the group then mail send to the group users (10) but 10 send mail to users that query.i Post uses CC who has the Post request.
I don't need that once mail send to the user who posts this request nothing 10 times.
It's looped .loop is fire 10 times for the CC, I need fire once for CC.
How can I do that.
My Code is.
How to solve it.DECLARE l_id number; to_add varchar2(1000); to_sub_by varchar2(1000); from_add varchar2(1000); l_body varchar2(4000):=:P33_DESCRIPTION; l_sub varchar2(1000):=:P33_SUBJECT; I_case varchar2(10):=:P33_CASE_ID; I_isue_dte date:=:P33_SUBMITTED_ON; l_regd varchar(100); CURSOR C1 IS SELECT EMAIL_ID,(SELECT EMAIL_ID FROM USER_MAS WHERE USER_ID =:P33_SUBMITTED_BY_ID) AS D FROM USER_MAS WHERE USER_GR_ID=:P33_ASSIGNED_TO_GROUP_ID AND USER_ID NOT IN(:APP_USER); BEGIN if :P33_ASSIGNED_TO_GROUP_ID is not null then open C1; LOOP FETCH C1 INTO to_add,to_sub_by; EXIT WHEN C1%NOTFOUND; select email_id,user_name into from_add,l_regd from user_mas where user_id=:app_user; l_id:=APEX_MAIL.SEND( p_to => to_add, -- change to your email address P_cc => to_sub_by, p_from => from_add, p_body => 'Issue Information'||''||chr(13)||chr(10)||chr(13)||chr(10)|| 'www.farhorizonindia.net:7777/crm'||''||chr(13)|| 'Issue Title'||':'||l_sub||CHR(13)||chr(10)|| 'Issue Number'||':'||I_case||CHR(13)|| 'Issue Open Date'||':'||I_isue_dte||''||chr(13)||chr(10)||CHR(13)||chr(10)|| 'Most Recent Comment'||':'||''||chr(13)||chr(10)|| l_body||chr(13)||chr(10)||''||CHR(13)||chr(10)||'Regards'||chr(13)||chr(10)||''||l_regd||CHR(13)||chr(10)||CHR(13)||chr(10)||'Please do not reply to this email.If you wish to update the call.please login to the issue Management.', P_subj => I_case ||' Issue '||l_sub); end loop; close C1; end if; COMMIT; apex_mail.push_queue( P_SMTP_HOSTNAME => '102.111.0.9', P_SMTP_PORTNO => 25); commit; END;
Thank you
Published by: Sophie on June 22, 2011 05:17
Published by: Sophie on June 22, 2011 20:57
Published by: Sophie on June 22, 2011 22:52
Published by: Sophie on June 23, 2011 12:11 AM
Published by: Sophie on June 23, 2011 01:15Hello
Maybe like this:
DECLARE l_id number; to_add varchar2(1000); to_sub_by varchar2(1000); from_add varchar2(1000); l_body varchar2(4000):=:P33_DESCRIPTION; l_sub varchar2(1000):=:P33_SUBJECT; I_case varchar2(10):=:P33_CASE_ID; I_isue_dte date:=:P33_SUBMITTED_ON; l_regd varchar(100); CURSOR C1 IS SELECT EMAIL_ID FROM USER_MAS WHERE USER_GR_ID=:P33_ASSIGNED_TO_GROUP_ID AND USER_ID NOT IN(:APP_USER); BEGIN if :P33_ASSIGNED_TO_GROUP_ID is not null then -- do this query once! select email_id,user_name into from_add,l_regd from user_mas where user_id=:app_user; -- first send a mail for the CC email SELECT EMAIL_ID into to_sub_by FROM USER_MAS WHERE USER_ID =:P33_SUBMITTED_BY_ID; --email l_id:=APEX_MAIL.SEND( p_to => to_sub_by, -- only the cc email p_from => from_add, p_body => 'Issue Information'||''||chr(13)||chr(10)||chr(13)||chr(10)|| 'www.farhorizonindia.net:7777/crm'||''||chr(13)|| 'Issue Title'||':'||l_sub||CHR(13)||chr(10)|| 'Issue Number'||':'||I_case||CHR(13)|| 'Issue Open Date'||':'||I_isue_dte||''||chr(13)||chr(10)||CHR(13)||chr(10)|| 'Most Recent Comment'||':'||''||chr(13)||chr(10)|| l_body||chr(13)||chr(10)||''||CHR(13)||chr(10)||'Regards'||chr(13)||chr(10)||''||l_regd||CHR(13)||chr(10)||CHR(13)||chr(10)||'Please do not reply to this email.If you wish to update the call.please login to the issue Management.', P_subj => I_case ||' Issue '||l_sub); -- Now the loop throught the users from the group open C1; LOOP FETCH C1 INTO to_add; EXIT WHEN C1%NOTFOUND; l_id:=APEX_MAIL.SEND( p_to => to_add, -- change to your email address -- P_cc => to_sub_by, -- no more CC p_from => from_add, p_body => 'Issue Information'||''||chr(13)||chr(10)||chr(13)||chr(10)|| 'www.farhorizonindia.net:7777/crm'||''||chr(13)|| 'Issue Title'||':'||l_sub||CHR(13)||chr(10)|| 'Issue Number'||':'||I_case||CHR(13)|| 'Issue Open Date'||':'||I_isue_dte||''||chr(13)||chr(10)||CHR(13)||chr(10)|| 'Most Recent Comment'||':'||''||chr(13)||chr(10)|| l_body||chr(13)||chr(10)||''||CHR(13)||chr(10)||'Regards'||chr(13)||chr(10)||''||l_regd||CHR(13)||chr(10)||CHR(13)||chr(10)||'Please do not reply to this email.If you wish to update the call.please login to the issue Management.', P_subj => I_case ||' Issue '||l_sub); end loop; close C1; end if; COMMIT; apex_mail.push_queue( P_SMTP_HOSTNAME => '102.111.0.9', P_SMTP_PORTNO => 25); commit; END;
Herald tiomela
http://htendam.WordPress.com -
Background loop problem.
Hey all,.
I'm working on a game in flash with a clip constantly loop always displayed on the screen.Unfortunately, whenever the image in the animation changes, the screen stutters very significantly. It's like whenever a new image of the animation is loaded it causes considerable slow down.
I tried many things including lowering the quality of all the images concerned to 0. The images are graphic PNG with transparencies, but not the transparency settings or display options have been added in flash.
Is it wrong to have slapped a movie continuously loop the clip on the stage? What are my options?
This slowdown occurs by operating on Iphone touch, not on my PC
Flash CS5.5
I'm sorry, I'm a little inexperienced but hopefully I clear the problem.
Thanks in advance guys.
Mark
because mobile phones are weak computing devices, it is easy to capsize their cpu/gpu.
That said, optimize your code for use on mobile phones can induce dramatic differences. In addition, cs6 product much better iApps will parade to cs5.5 (which was much better than cs5).
so, the simplest thing to do is use cs6. otherwise, you will probably need to learn a few optimization techniques. Here is a good starting point: http://help.adobe.com/en_US/as3/mobile/flashplatform_optimizing_content.pdf
Maybe you are looking for
-
Hi, tried to go on the the NBC application page, but it does not show the app to download on my MAC. tried to go to Apple store did not find NBC app it is Any help out there? They said that this was the way to disseminate the Olympic swimming events
-
Hello My Skype has recently begun to disconnecting me automatically 5 seconds after I log in. I have the latest version (6.20.0.104) installed. I tried to reinstall, but the same problem occurs. My Skype account is linked with my Microsoft account th
-
Trojan - PSW.win32 and hachtookwin/welenate
How to remove this Trojan nasty on top of the laboratory of my wife. An operating system is Vista. I used Malwarebytes anti-Malware for a year on my main computer and I tried on my Labtop wife, but it won't work. What suggestions do you have?
-
Need driver for printer Samsung ML-1520 on Windows 7 Ultimate
Need driver for printer Samsung ML-1520 on Windows 7 Ultimate
-
BlackBerry Smartphones unable to sync to Mac BB PIN
I just installed BB DTM for Mac and noticed that I have a major problem: the PIN code for all my contacts will not sync between my Mac and my BB. It works perfectly with Missing Sync, so I hope I'm missing something. Can anyone give some information