Can we write 2 windows write_form inside loop endloop
hi ,
my requirement is i have header and its table details ..
and i am maintaining header in 1 window and table in other .
can i write those two write form in a loop endloop.
if u have any example it help alot..
thanks in advance.
Hi,
Between the LOOP and ENDLOOP you can call as many as WRITE_FROM inyour Driver program
Regards
Sudheer
Similar Messages
-
When i install Flash 10, there was a error message showing "Can't write: C:\windows\system32\Macromed\Flash\Flash10e.ocx". I chose to ignore, installation can be completed but i still can't view any Flash file. I tried every steps showing in Adobe Flash Player Support Center to troubleshoot the issues, but i can't go any where. Will anyone know what's the problem and how i can install the Flash player on my laptop? I am using Windows 7 and Internet Explorer. Thanks heaps!
Is your Windows 7 32-bit or 64-bit?
Can you try to download this installer http://fpdownload.adobe.com/get/flashplayer/current/install_flash_player_ax.exe, save it to disk, then close all browser windows and run the downloaded installer - do you get the same message? -
First off, I'm not sure if this is the correct place to post this question.
I am having a problem with the windows server where I work. I can copy files from the server without a problem, but if I try to write a file to the server I get the following error: The Finder can’t complete the operation because some data in “filename” can’t be read or written. This creates a file on the server with zero bytes. Any idea how to resolve this?I'm having the same issue. Any luck yet?
~Joey -
Can't write to instrument in while loop.
in my case, I use 2 while loop for the progarm. one is to write the data to the instrument, another one is use local variable to change the data depend on time. the problem is the data which need write to the instrument does change. but another while loop doesn't write it to the instrument unless I push highlight excution in the diagram or choose save as in the file. could anybody help me to find the problem?
Hi Akuma,
the fact that it works when you highlight execution implies (perhaps) a race condition. The lightbulb serializes the execution of your VI, so that functions execute in succession although they don't depend on each other. When you then run the VI in realtime, some functions are executed at the same time, e.g. "VISA flush buffer" and "VISA write". It is important to define the order the VIs execute on your VISA interface for instance by wiring the error-cluster.
If this doesn't help, then post your VI (or a simplified version) or a screenshot of the diagram.
Greets, Dave
Greets, Dave -
Can i write Html code inside JSP method???
hi i am newbie to jsp and servlets. i am working on a project where i have to use same html code for two conditions in jsp. my question is can i write that html code inside any method in jsp?? and then can i call that method within that if and else scope. can anyone help me with this??
I don't think that does what you think it does.
<%!
void renderStateSelect(String default) { %>Creates a method with that signature and an open brace...
<select name="state"> puts:
out.println("<select name=\"state\">");
into the _jspService method
<%!
// logic to loop thru states
%>Puts the loop logic after the brace opening up the method renderStateSelect
</select>puts
out.println("</select>");
in the _jspService method
<%!
%>Closes the renderStateSelect method.
So if I do this:
<html>
<body>
<%!
void renderStateSelect(String def) { %>
<select name="state">
<%!
// logic to loop thru states
%>
</select>
<%!
%>
Hello<br/>
<% renderStateSelect("none"); %>
Everybody
</body>
</html>The html output is:
<html>
<body>
<select name="state">
</select>
Hello<br/>
Everybody
</body>
</html> The 'renderStateSelect method does not render the state select. The _jspService method does, in place where the HTML is written in the JSP file. As another look, the translated servlet looks like this:
package org.apache.jsp;
public final class IsThisOk_jsp extends org.apache.jasper.runtime.HttpJspBase
implements org.apache.jasper.runtime.JspSourceDependent {
void renderStateSelect(String def) {
// logic to loop thru states
public void _jspService(HttpServletRequest request, HttpServletResponse response)
throws java.io.IOException, ServletException {
try {
out.write("<html>\r\n<body>\r\n");
out.write("<select name=\"state\">\r\n");
out.write("</select>\r\n");
out.write(" \r\nHello<br/>\r\n");
renderStateSelect("none");
out.write("\r\nEverybody\r\n</body>\r\n</html>\r\n ");
}See. Any plain HTML code you put outside of the <%! %> tags is converted to out.printlns inside the _jspService method (in place where they occured in the JSP, not where the method you want to do the rendering is called...)
So unless I completely misunderstood your intent here, this apprach does not work. -
I’m unable to write/burn a CD-R (Verbatim) from a playlist after upgrading to iTunes 12.0.1.26. I get error 4000. I can however write/burn a CD from Windows Explorer and CDBurnerXP v4.5.4.5143 – which implies the device is working OK – and only fails when I write from iTunes. The drivers are up to date
Microsoft Windows 7 x64 Business Edition Service Pack 1 (Build 7601)
Dell Inc. Latitude E6420
iTunes 12.0.1.26
QuickTime 7.7.6
FairPlay 2.7.39
Apple Application Support 3.1
iPod Updater Library 12.0
CD Driver 2.2.3.0
CD Driver DLL 2.1.3.1
Apple Mobile Device 8.0.5.6
Apple Mobile Device Driver 1.65.0.0
Bonjour 3.0.0.10 (333.10)
Gracenote SDK 3.06.0.2770
Gracenote MusicID 3.06.0.2770
Gracenote Submit 3.06.0.2770
Gracenote DSP 3.06.0.2770
iTunes Serial Number 756D13C00C3583C8
Current user is not an administrator.
The current local date and time is 2015-01-13 14:47:35.
iTunes is not running in safe mode.
WebKit accelerated compositing is enabled.
HDCP is supported.
Core Media is supported.
Video Display Information
Intel Corporation, Intel(R) HD Graphics Family
**** External Plug-ins Information ****
No external plug-ins installed.
iPodService 12.0.1.26 (x64) is currently running.
iTunesHelper 12.0.1.26 is currently running.
Apple Mobile Device service 3.3.0.0 is currently running.
**** CD/DVD Drive Tests ****
LowerFilters: SbCeCd (3.2.6.3),
UpperFilters: GEARAspiWDM (2.2.3.0),
F: HL-DT-ST DVD+-RW GU40N, Rev A103
Drive is empty.
The last failed audio CD burn had error code 4000(0x00000fa0). It happened on drive F: HL-DT-ST DVD+-RW GU40N on CDR media at speed 24X.
F: HL-DT-ST DVD+-RW GU40N, Rev A103
Audio CD in drive.
Failed Reading table of contents, error 4000.
Check the website of your computer or drive manufacturer to verify that you have the latest firmware for your CD / DVD drive.
Audio CD reading failed. Error Code: 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87 87.
iTunes cannot play or import music from a CD in this drive. The drive may need a firmware update. Check with the manufacturer.
Get drive speed failed. Error Code: 4000.
The last failed audio CD burn had error code 4000(0x00000fa0). It happened on drive F: HL-DT-ST DVD+-RW GU40N on CDR media at speed 24X.Hi iTunes-1,
Welcome to the Support Communities! The error message you posted indicates a possible firmware update is needed for iTunes for Windows to work with your CD drive.
iTunes for Windows: Updating the firmware on your CD or DVD drive - Apple Support
http://support.apple.com/en-us/HT201852
Having outdated firmware can cause issues using CDs and DVDs with iTunes for Windows. Firmware is a type of software stored in a chip in hardware that can sometimes be updated.Identifying drives and firmware versions
To run CD Diagnostics, follow the steps in this document.
After following the steps to run CD Diagnostics linked above, look at section three to find out more about your optical drive(s).
Here is an example of what section three might look like:
In this example there are two drives. Drive E is a Samsung DVD-ROM drive with a model designation of SD-616 that has firmware version F000. Drive F is an NEC drive with a model designation of NR-7900A that has firmware version 1.08.Updating the firmware
If the optical drive you are using came with your computer, check with the support site for your computer for a firmware update. Typically you will need to go to the support website for the computer maker and click on a "downloads" or "updates" link, and then enter your computer model designation and operating system version to see what updates are available. Then look through the available updates for a firmware update for your optical drive. Download the updater and run it. If you need assistance applying the update, contact the maker of your computer.
If the optical drive you are using came as a separate part (was not included with a computer), check the support site for the drive maker for a firmware update. Sometimes the manufacturer is not clear in the CD Diagnostics results. In that case, you may just have to search the Internet for the drive model designation. You can usually find out who made the drive by looking through the results of such a search. Once you have identified who made your drive, go to the support website for that company. Look for a "downloads" or "updates" link, and then enter your optical drive model designation. Download the updater and run it. If you need assistance applying the update, contact the maker of the optical drive.Verifying that the firmware was updated
Run CD Diagnostics again.
Examine the CD Diagnostics results. The firmware version for the drive should be the new version.
Information about products not manufactured by Apple, or independent websites not controlled or tested by Apple, is provided without recommendation or endorsement. Apple assumes no responsibility with regard to the selection, performance, or use of third-party websites or products. Apple makes no representations regarding third-party website accuracy or reliability. Risks are inherent in the use of the Internet. Contact the vendor for additional information.
Last Modified: Nov 8, 2014
Also, you mentioned that you have been successful burning a CD with the Windows OS. Make sure that you have closed all software programs that can access the CD burner so that there isn't a conflict for the drive. Sometimes chaning the burn speed from "maximum" to 8x can also help in this situation.
I hope this information helps ...
- Judy -
Windows error msg: "Can not write to drive G: Joe's iPod"
Halfway thru the download process (1780 songs) from itunes to my ipod I get a windows error msg:
"Can not write to file G: Joe's ipod. All the data has been lost. Check for an error on your computer or network."
Getting the error msg: " Can not write to drive G: Joe's ipod. All data has been lost, your computer or network may have failed."
"Windows/ My computer" shows my ipod as drive G: and itunes starts up properly when I plug my ipod into my firewire port. About halfway thru the download (1780 songs) the transfer from itunes to my ipod stops and I get the above error message. (Never worked with USB). I am not on a network.
According to tech supt, I have:
-Installed Service Pack 2,
-Restored ipod to factory settings
-Installed update 5.0.1. Everything worked fine last Feb with the version 4 of itunes when I first loaded everything up.
Have tried to reinstall version 4, but no luck.
My ipod charges fine thru the firewire cable.
Any ideas?? Thanx anyone.Joe,
I am having the same problem, did you ever solve it, please email me at [email protected] with any help
Thanks -
I get Photoshop CS6 for Windows 7. I can not write the product key into the fields because I only can write numbers, but no letters.
Sounds like you've got an alphanumeric redemption code which you need to redeem for a numeric serial number.
Try Redemption Code Help -
Can I put Read inside loop?
Hi Folks
Can I put Read inside loop?
Performance wise is it acceptable?
Regards,
SreeramHi
there is no problem to put READ statement inside the LOOP
its a better way to put
to avoid SELECT in a LOOP
see this example
i had used that in my program
in the performance point of view it is a good method
LOOP AT IT_SOBID INTO WA_SOBID." where otype eq s_otype and objid eq s_objid.
READ TABLE IT_HRP1026 WITH KEY OBJID = WA_SOBID-SOBID OTYPE = WA_SOBID-SCLAS INTO WA_HRP1026.
IF SY-SUBRC EQ 0.
READ TABLE IT_HRP1000 WITH KEY OBJID = WA_SOBID-SOBID INTO WA_HRP1000.
WA_OUTPUT-OBJID = WA_HRP1026-OBJID.
WA_OUTPUT-BEGDA = WA_SOBID-BEGDA.
WA_OUTPUT-ENDDA = WA_SOBID-ENDDA.
WA_OUTPUT-AEDTM = WA_HRP1026-AEDTM.
WA_OUTPUT-UNAME = WA_HRP1026-UNAME.
WA_OUTPUT-STEXT = WA_HRP1000-STEXT.
READ TABLE IT_REASON WITH KEY CANCR = WA_HRP1026-CANCR INTO WA_REASON.
WA_OUTPUT-CANCRT = WA_REASON-CANCRT.
CLEAR WA_REASON-CANCRT.
READ TABLE IT_LOCATION1 WITH KEY OBJID = WA_HRP1026-OBJID INTO WA_LOCATION1..
READ TABLE IT_LSTEXT WITH KEY OBJID = WA_LOCATION1-SOBID OTYPE = 'F' INTO WA_LSTEXT.
WA_OUTPUT-LSTEXT = WA_LSTEXT-LSTEXT.
CLEAR WA_LSTEXT-LSTEXT.
APPEND WA_OUTPUT TO IT_OUTPUT.
CLEAR WA_OUTPUT.
CLEAR WA_OUTPUT-CANCRT.
ENDIF.
ENDLOOP.
<b>Reward if usefull</b> -
What is available on new Windows servers that allow you to write scripts that can work directly with Windows, SQL Server, and Exchange Server?
a. PowerShell
b. isql
c. osql
d. sqlcmdAll questions seem to be from the interview or a test. I think I even took this test once, it's KForce test.
For every expert, there is an equal and opposite expert. - Becker's Law
My blog
My TechNet articles -
How can i write code inside methods.
Hi,
I am new to wbdynpro. How can i write code in Webdynpro?
I have created one layout in that two textboxes are there. After entering the details when i click on the button the datas should be saved into the database table. How can i write code in this.
please help me.
ShyjaHi,
First in context create node for 2 input field. Then disign layout for input filds and do data binding. Then create button and assign ON action event to it. In action method use wizard to read the values from the node.
DATA: Node type REF TO IF_WD_CONTEXT_NODE,
elem_node1 TYPE REF TO if_wd_context_element,
stru_node1 type ZEMP.
Node = wd_Context->get_Child_Node( Name = `S_NODE2` ).
get element via lead selection
elem_node1 = node->get_element( ).
get all declared attributes
elem_node1->get_static_attributes(
IMPORTING
static_attributes = stru_node1 ).
INSERT ZEMP FROM stru_node1.
If helpful reward points.
Regards,
Karthick S -
How can i write voice memo in windows xp?
I can't write or copy voice memo from iphone5 to my pc
Voice memos are not written, they are recorded.
What happens when trying to copy the memo from the device to the computer? Any errors? -
How can I write to 4 different tables in database at the same time
I have .mdb file which has 4 tables for each hardware, I have a labview main program which calls 4 sub programs for each hardware, all these 4 subprograms run parallely.
One might finish one test early or late by milli seconds or seconds, the data has to be written to database file which has 4 tables inside.
I am planning to open reference in main program and use the reference in sub programs, I will write to Table 1 for first sub program , table 2 for second sub program and so on,
My question is can we write into one database file having 4 tables parallely/simulataneously? If no why?Try it. It should work. As long as you are opening the database once, and passing the reference around, I don't see how it would not work.
You may run into troubles if two subvi's are trying to write simultaneously. If so, use semiphores to lock out the action until done.
Or you could use a producer consumer architecture where the producer would queue up the table name and data, and the consumer would write to the database. The producer can be replicated in each subvi. In other words, each subvi will contain its own enqueue code. All subvi's and the consumer loop would have to run in parallel.
- tbob
Inventor of the WORM Global -
XSL-How to get value of a variable from inside loop-- to the outside loop?
Pls help
hi im currently working on this xsl file..
This works on generating a txt file,my problem right now is
' how can i get the value of a variable generated from the inside forloop,
i have to get the total,sum value of this variables after performing the loop
***this is the for loop
<xsl:for-each select="OutboundPayment">
<xsl:variable name='id' select='generate-id(OutboundPayment)'/>
<xsl:sort select="PaymentNumber/CheckNumber" data-type="text" />
<xsl:variable name='PValue' select='format-number(100*PaymentAmount/Value,"0000000000000")'/>
<xsl:value-of select='$id'/>
<xsl:text>D</xsl:text>
<xsl:value-of select='$DDate'/>
<xsl:value-of select='$Batch'/>
<xsl:text>3</xsl:text>
<xsl:value-of select='format-number(PaymentNumber/PaymentReferenceNumber,"0000000000")'/>
<xsl:value-of select='format-number(PayeeBankAccount/BankAccountNumber,"0000000000")'/>
<xsl:value-of select='substring(Payee/Name,1,20)'/>
<xsl:value-of select='$PValue'/>
<xsl:variable name='Addend' select='concat($DDate,substring($DAcct,5,5),$Batch)'/>
<xsl:variable name="LHash">
<xsl:call-template name="GetHash">
<xsl:with-param name="A1" select="$PValue" />
<xsl:with-param name="A2" select="$Addend" />
</xsl:call-template>
</xsl:variable>
<xsl:value-of select="concat('[',$LHash,']')" />
<!--LHash*i have to get the total amount of this one from the outside loop /---->
<xsl:call-template name='NewLine'/>
</xsl:for-each>
<!--I have to put in here the total value of that LHash/---->
<!--This is the template on how to get the value of that variable in the inside loop/---->
<xsl:template name="GetHash">
<xsl:param name='A1'/>
<xsl:param name='A2'/>
<xsl:variable name='TwoSum' select='format-number($A1+$A2,"000000000000000")'/>
<xsl:variable name='Weight' select='317191314191112'/>
<xsl:call-template name="WDigit">
<xsl:with-param name="Cnt" select="15"/>
<xsl:with-param name="Sum" select="$TwoSum"/>
<xsl:with-param name="Wgt" select="$Weight"/>
<xsl:with-param name="Tot" select="0"/>
</xsl:call-template>
</xsl:template>
<xsl:template name='WDigit'>
<xsl:param name='Cnt'/>
<xsl:param name='Sum'/>
<xsl:param name='Wgt'/>
<xsl:param name='Tot'/>
<xsl:choose>
<xsl:when test="$Cnt > 0">
<xsl:variable name='Multip' select='substring($Wgt,$Cnt,1)'/>
<xsl:variable name='Factor' select='substring($Sum,$Cnt,1)'/>
<xsl:variable name='Prduct' select='$Multip$Factor'/>
<!--xsl:value-of select="concat($Tot,'[',$Cnt,']')"/-->
<!--xsl:value-of select="concat($Multip,'x',$Factor,'=',$Prduct)"/-->
<!--xsl:call-template name='NewLine'/-->
<xsl:call-template name="WDigit">
<xsl:with-param name="Cnt" select="$Cnt - 1"/>
<xsl:with-param name="Sum" select="$Sum"/>
<xsl:with-param name="Wgt" select="$Wgt"/>
<xsl:with-param name="Tot" select="$Tot+$Prduct"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:variable name="Rem" select="$Tot mod 11"/>
<xsl:variable name="Chk" select="11 - $Rem"/>
<xsl:value-of select="format-number(concat($Tot,$Chk),'00000')"/>
</xsl:otherwise>
</xsl:choose>
<xsl:template name='GetTotal'>
</xsl:template>
Thanks in advance for those who are willing to help.
-LeighyaIt would have helped if you had posted your code as CODE but as it is, I could hardly read it. My guess about what you are asking is, if you want a template to return a value, just write that value to the result stream inside the template.
If that wasn't what you were asking, then please post your code in a readable format. -
How can i write the below code using "For all entries"
Hi
How can we write the below code using "for all entries" and need to avoid joins...
Please help
SELECT aaufnr aobjnr aauart atxjcd a~pspel
agstrp awerks carbpl cwerks
INTO TABLE t_caufv
FROM caufv AS a
INNER JOIN afih AS b
ON aaufnr = baufnr
INNER JOIN crhd AS c
ON bgewrk = cobjid
AND c~objty = 'D'
WHERE ( a~pspel = space
OR a~txjcd = space
OR NOT a~objnr IN
( select OBJNR from COBRB AS e
WHERE objnr = a~objnr ) )
AND a~werks IN s_plant
AND a~auart IN s_wtype
AND NOT a~objnr IN
( select OBJNR from JEST AS d
WHERE objnr = a~objnr
AND ( dstat = 'A0081'OR dstat = 'A0018' )
AND d~inact 'X' ).
Reward points for all helpfull answers
Thanks
Ammi.Hi,
SELECT objnr objid aufnr
from afih
into table t_afih.
SELECT objnr
from JEST
into table t_JEST
where stat = 'A0045'
OR stat = 'A0046'
AND inact 'X'.
SELECT objnr
from COBRB
into table t_cobrb.
SELECT arbpl werks objid objty
from crhd
INTO table it_crhd
FOR ALL ENTRIES IN it_afih
WHERE objty eq 'D'
AND gewrk = it_afih-objid.
SELECT aufnr objnr auart txjcd pspel gstrp werks aufnr
FROM caufv
INTO table t_caufv
FOR ALL ENTRIES IN it_afih
WHERE aufnr = it_afih-aufnr
And pspel = ' '
AND txjcd = ' '
ANd objnr ne it_crhd-objnr
AND auart in s_wtype
AND werks in s_plant.
AND objnr ne it_jest-objnr.
dont use NE in the select statements, it may effect performance also. Instead use if statements inside
loops.
loop at t_caufv.
read table it_chrd............
if t_caufv-objnr ne it_chrd-objnr.
read table it_jest..........
if if t_caufv-objnr ne it_jest-objnr.
(proceed further).
endif.
endif.
endloop.
hope this helps.
Reward if useful.
Regards,
Anu
Maybe you are looking for
-
OVI Suite 2.2.0.245 crashes on windows 7 64 bit pc
My ovi suite worked fine windows xp. I recently got it installed on Windows 7 64 bit machine. It crashes upon starting the suite. following are the details. Kindly help Problem signature: Problem Event Name: APPCRASH Application Name: NokiaOviSuite.e
-
Change "subject" in Receiver Mail Adapter Module
Hi all, following the "How To Guide" I developed a Module for my receiver mail adapter. Everything works fine. Now my question: is it possible to change the content of the mail-"subject" in the module? Your help is appreciated. Carmen
-
I'm using an iPhone 4S with the latest updated software. Under "usage" it shows less available than total, so my last backup went through (have only done that once in the short time I've owned the phone). I had it setup to only backup manually, whe
-
10 customer and 10 employed sales
Hi experts, I would like sorting 1. consumer sales and 2. employed sales only for the 10 best every day how to make a query, because the existing Query Engadget incompatible with the existing results on the sales analysis SELECT top 10 T0.Cardcode,ma
-
Need the name of the funcion module for master data planning
Hi all, i need to know the name of the function module to call in a planning function in order to do a master data planning. thanks a lot!