Recordset Code Help
Hi Guys and Gals,
I need a bit of help. I have the following code. What I need
to do is to replace www.coke.com with the web address that is
stored in the recordset. I cannot manage to figure out a way to do
this.
Anyone able to help.........
Cheers
James
<div align="right"><font face="Verdana, Arial,
Helvetica, sans-serif"
size="1"><a
href="<%=(Recordset1.Fields.Item('Website').Value)%>"><font
color="#FFFFFF">..</font></a></font></div>
By the way, don't use <font> tags - use CSS instead.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
==================
"Superkopite" <[email protected]> wrote in
message
news:gl7b1b$mu7$[email protected]..
> Hi Guys and Gals,
>
> I need a bit of help. I have the following code. What I
need to do is to
> replace www.coke.com with the web address that is stored
in the recordset.
> I
> cannot manage to figure out a way to do this.
>
> Anyone able to help.........
>
> Cheers
>
> James
>
>
> <div align="right"><font face="Verdana, Arial,
Helvetica, sans-serif"
> size="1"><a
> href="
http://www.coke.com"><%=(Recordset1.Fields.Item("Website").Value)%><font
>
color="#FFFFFF">..</font></a></font></div>
>
Similar Messages
-
New Recordset Code in CS3?
I have some ASP (VBScript) pages where I use a "sort"
feature. The idea is
that when a user clicks on a column heading, this value
becomes a string in
the address bar. Then, I setup the recordset to ORDER BY
varsort (where
varsort = request.querystring("sort")).
In previous versions of DW this worked fine, but not with
CS3. The code for
the recordsets created with CS3 appears to be different. Why
would the new
code "break" my setup (it's not recognizing any sorts)?
Sort page with old DW:
http://www.presentationsdirect.com/Laminators/search_results.asp?lamtype=pouch
Sort page with new DW:
http://www.presentationsdirect.com/Laminators/Supplies/search_results_rolls.asp?width=25
Brandon
http://www.presentationsdirect.comThanks for the helpful info.
Brandon
"danilocelic AdobeCommunityExpert"
<[email protected]> wrote in
message news:f7ll5h$1u9$[email protected]..
> Nancy - Adobe Comm. Expert wrote:
>> The code for
>>> the recordsets created with CS3 appears to be
different. Why would the
>>> new code "break" my setup (it's not recognizing
any sorts)?
>>
>>
>> Recordset code was not updated in CS3, but rather in
8.02 to deter SQL
>> injection attacks. Quickly remake the recordset with
the new version and
>> you should be good to go.
>
> Nancy,
>
> Unfortunately, what the OP is asking for isn't possible
with the "new
> version" of recordset, as it assumes that all parameters
within the SQL
> are column value parameters, and dynamic SQL generation
is no longer
> supported. This has caused a number of folks )including
Tom Muck quite
> vociferously) to complain about the lack of versatility
of the new
> recordset code.
>
>
>
> Brandon, What you'll need to do is to hand edit the
recordset after you've
> applied it to the page. I've not tried this particular
use case recently,
> but it is possible that after editing that DW will no
longer recognize
> that the recordset is on the page.
>
> FWIW: You should never directly use a querystring
parameter in your code,
> you should always "clean" it first. IIRC The old style
of recordsets did a
> replace on the value replacing all single quotes with
doubled single
> quotes. A better way may be to have some code that
checks for the value of
> the querystring parameter and if it matches one of your
column you can
> sort on, then use a string of your own making to use
within the SQL.
>
>
> --
> Danilo Celic
> | Extending Knowledge Daily :
http://CommunityMX.com/
> | Adobe Community Expert -
DW CS4 keeps duplicating recordset code after opening/editing a recordset
Hi all,
I'm wasting lots of time editing and re-editing recordsets in DW CS4 using the PHP server model.
After opening a recordset an making changes, DW will break the recordset code duplicating it.
This appen even if I open and suddendly close the recordset without making any changes.
This is a critical bug.
Is there a fix/update/workaround?
At this time the solution is to delete the recordset in the code view (paying attention to not delete something useful) and to re-create it by scratch.
This is not a sample to feature the screamed adobe productivity applications.
Any suggestion will be really appreciated.
TIA
tonyThis forum is for Extension Authoring, so you'll probably get a better response from the DW Application Development forum.
Try uninstalling all of your extensions to see if that fixes the problem. If so, then just install extensions 1 at a time as you need them to help isolate the problem. Next, I'd try deleting your entire User Configuration folder. Otherwise, uninstalling and reinstalling DW may be the only way to fix it.
HTH,
Randy -
Survey creation abap code help needed
hello experts,
I need to create a survey in crm, by taking values from end-user from a webpage
A sample code help is needed.
Thanks in advanceTake a look at this SAP note - It does a pretty good job of detailing the steps for you. No coding necessary, it worked out of the box for us after patching this note.
https://service.sap.com/sap/support/notes/638320 -
Inquiring minds may find this error code helpful: 0x207
Hopefully I'm asking this in the right forum. I just downloaded the update for Microsoft Remote Desktop for Windows Phone 8.1 (I am actually running Denim on a 1520 but that may not matter). The version is 8.1.8.13 released 3/4/2015. I am trying to connect
to a RemoteApp application but I am receiving the following error message shortly after it tries the redirection process (I think it fails at the securing remote connection part after it attemps the redirction to the RemoteApp application collection server):
Connection error
We couldn't connect to the remote PC. This might be due to an expired password. If this keeps happening, ask your admin or tech support for help.
Inquiring minds may find this error code helpful: 0x207
I am able to connect directly to both the broker server as well as the RemoteApp collection server with this application with the same credentials and am only experiencing this when trying to connect to a RemoteApp application.
We are running Server 2012 R2 for both the broker/web and the collection servers. We are not using a gateway server as we use an SSL VPN concentrator instead for access outside of our network. We have server farms set up as well in the RemoteApp topology.
Any info would help or let me know if I'm not posting in the right forum for this issue. I know this is a very recent release so I'm trying to figure out if I should wait for a bug fix or if there's something that I can do on my end.
Thank you in advance for your time!Hi Scott,
Please check your configuration once again and the certificate must be well configured. Also for accessing RemoteApp there might be the permission issue for your use, recheck once and verify. You can also got through
this article for information.
Hope it helps!
Thanks.
Dharmesh Solanki
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected] -
Redemption code help that you keep sending everyone to is NOT HELPING. It just tells you to put in the redemption code. IF I HAD THE CODE I WOULD HAVE PUT IT IN!! How do I find the code?
Version 5.5 was/is not part of the Cloud, so you could not have subscribed to that version
You install version 5.5 on a 2nd computer exactly the same way you did the 1st time... put the disc in the drive and enter your serial number when asked
Does your serial number show on your account page?
https://www.adobe.com/account.html for serial numbers on your Adobe page... or
Lost serial # http://helpx.adobe.com/x-productkb/global/find-serial-number.html -
Code help in writing report Program
Hello experts
I have to write a selection screen program based on the following requirements (only for sales Org:5090, plant:9000, Outbound delivery type= "LF")
Selection parameters:
Material (lips-matnr)
Sold to party(likp-kunag): can hardcode it to 5090
Sales Org(likp-vkorg)
Plant(lips-werks) : hard code it to plant:9000
Sales order(likp-vbeln)
Actual goods movement dates(likp-wadat_ist)
Invoice number
Sales order
Output
material numberlips~matnr ( should Display only S* materials and material type FERT)
Serial number of the device shipped (objk-sernr)
Delivery number (lips~vbeln)
Invoice number (vbrp-vbeln)
Invoice price=Vbrp-vbeln/quantity (invoice price)
Notification number (Viqmel-QMNUm)
KBB Repair Level(VIQMEL-QMTXT from QMCOD )
KBC Repair level(VIQMMA-MNCOD from KBC-SM07 code group(VIQMMA-MNGRP))
code help is higly appreciated,
Thanks
SpHi anurag,
Code is going like this, i could able to display it but when i run it ABAP Dump is coming.
what could be the reason?
Tahnks
SP
*& Report ZSDR_PRICING_KSE_RPT *
REPORT ZSDR_PRICING_KSE_RPT .
TABLES: likp, lips, vbfa, vbak.
TYPE-POOLS: slis.
*/ Selection and Input Parameters
SELECTION-SCREEN BEGIN OF BLOCK block2 WITH FRAME TITLE text-003.
SELECT-OPTIONS: s_matnr FOR lips-matnr,
s_kunag FOR likp-kunag.
SELECT-OPTIONS: s_vkorg FOR likp-vkorg NO INTERVALS,
s_werks FOR lips-werks.
SELECT-OPTIONS: s_vbeln FOR likp-vbeln,
s_waist FOR likp-wadat_ist.
SELECT-OPTIONS: s_vgbel FOR lips-vgbel.
SELECTION-SCREEN END OF BLOCK block2.
DATA: gt_fieldcat TYPE slis_t_fieldcat_alv.
TYPES: BEGIN OF ty_data,
matnr TYPE lips-matnr,
sernr TYPE equi-sernr,
vbeln TYPE lips-vbeln,
invno TYPE vbfa-vbeln,
qmnum TYPE vbak-qmnum,
netwr type vbrp-netwr,
END OF ty_data.
DATA: gt_data TYPE TABLE OF ty_data WITH HEADER LINE.
TYPES: BEGIN OF ty_lips,
vbeln TYPE likp-vbeln,
matnr TYPE lips-matnr,
wersk TYPE lips-werks,
vgbel TYPE lips-vgbel,
END OF ty_lips.
DATA: gt_lips TYPE TABLE OF ty_lips WITH HEADER LINE.
DATA: gt_vbfa TYPE TABLE OF vbfa WITH HEADER LINE.
DATA: gt_vbrp TYPE TABLE OF vbrp WITH HEADER LINE.
TYPES: BEGIN OF ty_ser01,
lief_nr TYPE ser01-lief_nr,
obknr TYPE ser01-obknr,
sernr TYPE objk-obknr,
END OF ty_ser01.
DATA: gt_ser01 TYPE TABLE OF ty_ser01 WITH HEADER LINE.
START-OF-SELECTION.
PERFORM get_data.
PERFORM display_data.
*& Form get_data
FORM get_data.
SELECT likpvbeln lipsmatnr lipswerks lipsvgbel
INTO CORRESPONDING FIELDS OF TABLE gt_lips
FROM likp INNER JOIN lips ON lipsvbeln = likpvbeln
WHERE lips~matnr IN s_matnr
AND lips~werks IN s_werks
AND likp~kunag IN s_kunag
AND likp~wadat_ist IN s_waist
AND lips~vgbel IN s_vgbel
AND likp~vkorg IN s_vkorg.
IF NOT gt_lips[] IS INITIAL.
SELECT vbeln vbelv INTO CORRESPONDING FIELDS OF TABLE gt_vbfa
FROM vbfa
FOR ALL ENTRIES IN gt_lips
WHERE vbelv = gt_lips-vgbel
AND vbtyp_n = 'M'.
IF NOT gt_vbfa[] IS INITIAL.
SELECT vbeln matnr netwr
INTO CORRESPONDING FIELDS OF TABLE gt_vbrp
FROM vbrp FOR ALL ENTRIES IN gt_vbfa
WHERE vbeln = gt_vbfa-vbeln.
SELECT ser01lief_nr ser01obknr objk~sernr
INTO CORRESPONDING FIELDS OF TABLE gt_ser01
FROM ser01 INNER JOIN objk ON objkobknr = ser01obknr
FOR ALL entries IN gt_vbfa
WHERE ser01~lief_nr = gt_vbfa-vbeln
AND taser EQ 'SER01'.
ENDIF.
ENDIF.
clear: gt_data[].
LOOP AT gt_lips.
LOOP AT gt_vbfa WHERE vbelv = gt_lips-vgbel.
READ TABLE gt_vbrp WITH KEY vbeln = gt_vbfa-vbeln
matnr = gt_lips-matnr.
LOOP AT gt_ser01 WHERE lief_nr = gt_vbfa-vbeln.
gt_data-matnr = gt_lips-matnr.
gt_data-sernr = gt_ser01-sernr.
gt_data-vbeln = gt_lips-vbeln.
gt_data-invno = gt_vbfa-vbeln.
gt_data-netwr = gt_vbrp-netwr.
APPEND gt_data.
ENDLOOP.
ENDLOOP.
ENDLOOP.
ENDFORM. " get_data
*& Form display_data
FORM display_data.
DATA: lv_repid TYPE sy-repid.
lv_repid = sy-repid.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = lv_repid
I_INTERNAL_TABNAME =
i_structure_name = gt_data
I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME =
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
CHANGING
ct_fieldcat = gt_fieldcat
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
i_callback_program = lv_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_STRUCTURE_NAME =
IS_LAYOUT =
it_fieldcat = gt_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = ' '
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = gt_data
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. -
I was messing around with my iPad and put in a in app purchese and forgot the pass code help!
I was messing around with my iPad and put in a in app purchese and forgot the pass code help!
Do you mean you forgot the passcode for your iPad? If so you need to restore it through the recovery mode described in http://support.apple.com/kb/HT1808
-
Redemption Code Help, where do I locate it?
Redemption Code Help, where do I locate it?
You have activate the subscription only once in the month of August 2014, so you can activate it one more time, if the Cc is asking for serial number then please follow the steps:
Creative cloud do not need a serial number. it will be using your Adobe ID on which you have purchased the creative cloud membership.
So you need to login with your Adobe ID and password to activate the cloud membership.
Log out & log back in of the CC Desktop App.
In case it is not signing in successfully please try the following:
I don't know which operating system you are working on so i am giving you some steps windows and MAC OS:
Windows:
In windows 7 navigate to following location:
/windows/system32/drivers/etc
1. look out for "Hosts" file
2. Open it with notepad
3. Check if you have any entry for Adobe
4. Remove the entries and try again launching any product from CC
On Windows XP navigate to following location:
\windows\system32\drivers\etc
1. look out for "Hosts" file
2. Open it with notepad
3. Check if you have any entry for Adobe
4. Remove the entries and try again launching any product from CC
Mac:
1. Please click on "Go" and navigate to /private/etc
2. Open "hosts" file and check out for any entries for Adobe.com
3. Remove the entries and save the file
4. try again launching any product from CC
You can refer :
http://helpx.adobe.com/creative-cloud/kb/ccm-prompt-serial-number.html
http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-i ssues.html.
Please let us know if it worked.
Regards,
Rajshree -
HT201209 When I try to redeem it says error invalid code help me please.
When I try to redeem it says error invalid code help me please.
Contact iTunes Customer Service and request assistance
Use this Link > Apple Support iTunes Store Contact
Note: iTunes Gift Cards are only Valid in Country of issue -
I just had to buy a new computer because my "vintage" Mac died. After migrating my backup drive over to my New mac book my Adobe CS no longer works. I get a 150:30 error code HELP!
You need to reinstall it properly, not use migration.
Mylenium -
DW 8 Patch - Recordset Code Change
Hi All...
I've just updated my DW 8.0 to 8.0.2 due to the recent SQL Injection attacks.
Some of my recordsets are complex and i'm having trouble updating one in particilar.
I've posted the old code and the new code below.
I can see that the problem is caused in the SQL Select Statement code that the new patch creates 'Where RelatedProductID=?"
I'm hoping someone can offer a solution before i pull all my hair out :-)
Fingers crossed and thanks in advance
Andy
Here is the SQL Statement i put in to DW - problem highlighted in red
SELECT RelatedProducts.ProductID, Products.Product FROM RelatedProducts INNER JOIN Products ON RelatedProducts.ProductID = Products.ProductID where RelatedProductID=param UNION SELECT RelatedProducts.RelatedProductID, Products.Product
FROM RelatedProducts INNER JOIN Products ON RelatedProducts.RelatedProductID = Products.ProductID
WHERE RelatedProducts.ProductID=param
ORDER BY Product
and the page code generated:
<%
Dim RelatedProductsRS__param
RelatedProductsRS__param = "1"
If (ProductID <> "") Then
RelatedProductsRS__param = ProductID
End If
%>
<%
Dim RelatedProductsRS
Dim RelatedProductsRS_cmd
Dim RelatedProductsRS_numRows
Set RelatedProductsRS_cmd = Server.CreateObject ("ADODB.Command")
RelatedProductsRS_cmd.ActiveConnection = MM_my_STRING
RelatedProductsRS_cmd.CommandText = "SELECT RelatedProducts.ProductID, Products.Product FROM RelatedProducts INNER JOIN Products ON RelatedProducts.ProductID = Products.ProductID where RelatedProductID=? UNION SELECT RelatedProducts.RelatedProductID, Products.Product FROM RelatedProducts INNER JOIN Products ON RelatedProducts.RelatedProductID = Products.ProductID WHERE RelatedProducts.ProductID=param ORDER BY Product"
RelatedProductsRS_cmd.Prepared = true
RelatedProductsRS_cmd.Parameters.Append RelatedProductsRS_cmd.CreateParameter("param1", 5, 1, -1, RelatedProductsRS__param) ' adDouble
Set RelatedProductsRS = RelatedProductsRS_cmd.Execute
RelatedProductsRS_numRows = 0
%>
Old SQL statement before the patch - old code highlighted in red
<%
Dim RelatedProductsRS__param1
RelatedProductsRS__param1 = "1"
If (ProductID <> "") Then
RelatedProductsRS__param1 = ProductID
End If
%>
<%
Dim RelatedProductsRS
Dim RelatedProductsRS_numRows
Set RelatedProductsRS = Server.CreateObject("ADODB.Recordset")
RelatedProductsRS.ActiveConnection = MM_my_STRING
RelatedProductsRS.Source = "SELECT RelatedProducts.ProductID, Products.Product FROM RelatedProducts INNER JOIN Products ON RelatedProducts.ProductID = Products.ProductID where RelatedProductID=" + Replace(RelatedProductsRS__param1, "'", "''") + " UNION SELECT RelatedProducts.RelatedProductID, Products.Product FROM RelatedProducts INNER JOIN Products ON RelatedProducts.RelatedProductID = Products.ProductID WHERE RelatedProducts.ProductID=" + Replace(RelatedProductsRS__param1, "'", "''") + " ORDER BY Product"
RelatedProductsRS.CursorType = 0
RelatedProductsRS.CursorLocation = 2
RelatedProductsRS.LockType = 1
RelatedProductsRS.Open()
RelatedProductsRS_numRows = 0
%>Hi bregent
Thank you for responding to my post.
With a fresh pair of eyes on me this morning, i managed to sort the problem out.
I simply removed the param's in the DW Recordset Bindings and re-added them using a separate param for each instance the param was called in the SQL Statement.
All working fine now :-D
I have a new problem on the product insert page - please see my latest post if you could possibly help!
Thanks Again
So now the generated code looks like:
<%
Dim RelatedProductsRS__param
RelatedProductsRS__param = "1"
If (ProductID <> "") Then
RelatedProductsRS__param = ProductID
End If
%>
<%
Dim RelatedProductsRS__param2
RelatedProductsRS__param2 = "1"
If (ProductID <> "") Then
RelatedProductsRS__param2 = ProductID
End If
%>
<%
Dim RelatedProductsRS
Dim RelatedProductsRS_cmd
Dim RelatedProductsRS_numRows
Set RelatedProductsRS_cmd = Server.CreateObject ("ADODB.Command")
RelatedProductsRS_cmd.ActiveConnection = MM_myconnection_STRING
RelatedProductsRS_cmd.CommandText = "SELECT RelatedProducts.ProductID, Products.Product FROM RelatedProducts INNER JOIN Products ON RelatedProducts.ProductID = Products.ProductID where RelatedProductID=? UNION SELECT RelatedProducts.RelatedProductID, Products.Product FROM RelatedProducts INNER JOIN Products ON RelatedProducts.RelatedProductID = Products.ProductID WHERE RelatedProducts.ProductID=? ORDER BY Product"
RelatedProductsRS_cmd.Prepared = true
RelatedProductsRS_cmd.Parameters.Append RelatedProductsRS_cmd.CreateParameter("param1", 5, 1, -1, RelatedProductsRS__param) ' adDouble
RelatedProductsRS_cmd.Parameters.Append RelatedProductsRS_cmd.CreateParameter("param2", 5, 1, -1, RelatedProductsRS__param2) ' adDouble
Set RelatedProductsRS = RelatedProductsRS_cmd.Execute
RelatedProductsRS_numRows = 0
%> -
Problem with JTextArea or is it my code, Help!!!
Hi,
I am going crazy. I am sending a message to a JTextArea and I get some very wierd things happening? I really need help because this is driving me crazy. Please see the following code to see my annotations for the problems. Has anyone else experienced problems with this component?
Thanks,
Steve
// THIS IS THE CLASS THAT HANDLES ALL OF THE WORK
public class UpdateDataFields implements ActionListener { // 400
JTextArea msg;
JPanel frameForCardPane;
CardLayout cardPane;
TestQuestionPanel fromRadio;
public UpdateDataFields( JTextArea msgout ) { // 100
msg = msgout;
} // 100
public void actionPerformed(ActionEvent evt) { // 200
String command = evt.getActionCommand();
String reset = "Test of reset.";
try{
if (command.equals("TestMe")){ // 300
msg.append("\nSuccessful");
Interface.changeCards();
} // 300
catch(Exception e){
e.printStackTrace();
try{
if (command.equals("ButtonA")){ // 300
// WHEN I CALL BOTH OF THE FOLLOWING METHODS THE DISPLAY WORKS
// BUT THE CHANGECARDS METHOD DOES NOT WORK. WHEN I COMMENT OUT
// THE CALL TO THE DISPLAYMESSAGE METHOD THEN THE CHANGECARDS WORKS
// FINE. PLEASE THE INTERFACE CLASS NEXT.
Interface.changeCards();
Interface.displayMessage("test of xyz");
} // 300
catch(Exception e){
e.printStackTrace();
} // 200
} // 400
// END OF UPDATEDATAFIELS END END END
public class Interface extends JFrame { // 300
static JPanel frameForCardPane;
static CardLayout cardPane;
static JTextArea msgout;
TestQuestionPanel radio;
Interface () { // 100
super("This is a JFrame");
setSize(800, 400); // width, height
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
// set-up card layout
cardPane = new CardLayout();
frameForCardPane = new JPanel(); // for CardLayout
frameForCardPane.setLayout(cardPane); // set the layout to cardPane = CardLayout
TestQuestionPanel cardOne = new TestQuestionPanel("ABC", "DEF", msgout, radio);
TestQuestionPanel cardTwo = new TestQuestionPanel("GHI", "JKL", msgout, radio);
frameForCardPane.add(cardOne, "first");
frameForCardPane.add(cardTwo, "second");
// end set-up card layout
// set-up main pane
// declare components
msgout = new JTextArea( 8, 40 );
ButtonPanel commandButtons = new ButtonPanel(msgout);
JPanel pane = new JPanel();
pane.setLayout(new GridLayout(2, 4, 5, 15)); pane.setBorder(BorderFactory.createEmptyBorder(30, 20, 10, 30));
pane.add(frameForCardPane);
pane.add( new JScrollPane(msgout));
pane.add(commandButtons);
msgout.append("Successful");
setContentPane(pane);
setVisible(true);
} // 100
// HERE ARE THE METHODS THAT SHOULD HANDLE THE UPDATING
static void changeCards() { // 200
cardPane.next(frameForCardPane);
System.out.println("Calling methods works!");
} // 200
static void displayMessage(String test) { // 200
String reset = "Test of reset.";
String passMessage = test;
cardPane.next(frameForCardPane);
System.out.println("Calling methods works!");
msgout.append("\n"+ test);
} // 200
} // 300Hi,
I instantiate it in this class. Does that change your opinion or the advice you gave me? Please help!
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
class CardLayoutQuestionsv2 {
public static void main(String[] arguments) {
JFrame frame = new Interface();
frame.show();
} -
I'm locked out of my iPhone. My 4 digit security code is not working. I've tried to connect to iTunes to do a recovery however I. Order to do this it asks me for the 4 digit code. I need to reset it but unable to get into reset as well. Help!!t can I reset it using my iPad which is registered to the same account
See Here > http://support.apple.com/kb/HT1808
You may need to try this More than Once... Be sure to Follow ALL the Steps.. -
Hi All,
My requirement is below :
In my DSO I have the data as below
doc number item con type Agreement
100 10 adc 1234
efg 5678
hij ' '
200 20 adc 1234
efg ' '
hij 5678
Now I have created a New Info object named flag. So now I am doing a self myself data mart where i need to write my routine to set data in the flag.
The data should be like
doc number item con type Agreement Flag
100 10 adc 1234 X
efg 5678 X
hij ' ' X
200 20 adc 1234 X
efg ' ' X
hij 5678 X
Note:- even if agreement is blank for hij we need to put X since agreement is available for the remaining two condition types.
Please can any one help with the code.and also please let meknow whether we shold write it in start routine or end routine
Thanks In advance
SreeHi Rookie ,
If i write the code below
DATA: ITAB TYPE TABLE OF tys_TG_1,
ITAB_WA TYPE tys_TG_1.
MOVE RESULT_PACKAGE[] TO ITAB[].
LOOP AT RESULT_PACKAGE ASSIGNING <RESULT_FIELDS>.
IF <RESULT_FIELDS>-AGREEMENT IS NOT INITIAL.
<RESULT_FIELDS>-FLAG = 'X'.
ELSE.
LOOP AT ITAB INTO ITAB_WA WHERE AGREEMENT IS NOT INITIAL AND
DOC_NO = <RESULT_FIELDS>-DOC_NO AND
ITM_NO = <RESULT_FIELDS>-DOC_NO.
<RESULT_FIELDS>-FLAG = 'X'.
EXIT.
ENDLOOP.
ENDIF.
ENDLOOP.
My requirement doesnt match
My requirement is below
doc number item con type Agreement
100 10 adc 1234
efg 5678
hij ' '
200 20 adc ' '
efg ' '
hij ' '
Expected result is
doc number item con type Agreement flag
100 10 adc 1234 x
efg 5678 x
hij ' ' x
200 20 adc ' ' ' '
efg ' ' ' '
hij ' ' ' '
regards
Sree
Maybe you are looking for
-
System name for alias GD4_500 not found in portal
Hi people, I want to launch a query from analyzer, but i have the next error message "System name for alias GD4_500 not found in portal". What can i do?? More thanks
-
Cover Flow preview in Finder fails to work
Hello, I updated recently to OS X Mavericks, and since i updated there have been problems in the Preview (Cover Flow preview in Finder. When i open a folder and scroll down items, sometime there are 10 images and in cover flow shows only half and th
-
Cursor name visable property on xy graph: name overlays cursor point.
I have an XY grpah set up, and I realized that when i apply the name visable attribute to the cursors programmiably, the name seems to overlay teh cursor, being right on top of it. Yet if i do it manualy through the cursor legend, it shows it on top.
-
10.1.3.2 and Database access
In version 5.x, you could bring data into MS Word directly from the database. Is this still an option in 10.1.3.? If not, what is the recommended approach. Do I login into the web tool, build the report and then export the xml? Thanks.
-
Do we require a seperate server for each JWS app ?
We have an app that runs on JWS and uses a fairly large MS SQL database. We currently host this on our server. We use ServletExec and Win2k and IIS. Most customers do not have MS SQL on their laptops. Each customer wants to login and use their own ve