How do I GET the 'set text of container' behavior in DW CS3 if it's missing?
I'm building a site using CSS in DW CS3 (bought in May 2006) that has some photo gallery pages where a large image changes per thumbnails to its right that are clicked. The thumbnails are in their divs and the wished-for big image should appear in a larger div to the left. I've read in other postings here that I can use Behaviors panel > Set Text > Set text to container to do this, but this behavior is missing in my Set Text submenu. How do I add this behavior there?
Also, how do I not only create this 'on click' behavior, but have the thumbnail image change to a 'HIT' state like a rollover would?
(P.S. - posted this yesterday, slightly different heading, but it didn't appear today)
Thanks for your help --
Check this location in windows C:\Program Files\Adobe\Adobe Dreamweaver CS5\configuration\Behaviors\Actions\Set Text
If this Set Text folder is not there it means that the behavior did not get installed. So you might need to reinstall DW CS3.
Similar Messages
-
How to restore image after Set Text of Container behavior
Hi there, I'm not sure how to apply the Set Text of Container behavior. Basically, when I mouse over an image, I want a larger version of the image with decription text to appear. I also want to restore the original image without text on mouse out.
I want the larger image and its text to appear in the exact location of the original image not anywhere else on the page. Here's an example what I've done to try and achieve the effect:-
1. Create a div and insert image in it.
2. Select the image and Set Text of Container behavior. Under the Set Text of Container dialog box, select the div that the image is in (e.g. div "apdiv1") and type in the New HTML - For example: <img src="largerimage.jpg"><span id="apdiv1">image description</span>
3. Set the event to mouseover
I do not know how to proceed to restore the original image without text when I mouse out. I know I’m doing something wrong to achieve this effect but I can’t figure out what it is. Your help is greatly appreciated!Use CSS Disjointed Rollovers.
http://alt-web.com/DEMOS/CSS-Disjointed-Image-Rollover.shtml
http://alt-web.com/DEMOS/CSS-Disjointed-Rollover-1.shtml
http://alt-web.com/DEMOS/CSS-Disjointed-Rollover-2.shtml
http://alt-web.com/DEMOS/CSS-Disjointed-Rollover-3.shtml
Nancy O.
THANK YOU NANCY It worked perfectly!
THANKS GRAMPS! -
"Set text of container" behavior crashes Dreamweaver! (CS3)
When I try to change pages which use the "Set text of
container" behavior it
crashes DW-CS3. The dialog which used to come up first shows
a series of
asterisks in the drop-down for the container selected, and
the CPU does
overtime for about a minute before the correct values appear.
If I change
any values and OK it, then CPU starts using over 90% on DW
and nothing
happens until I force a shut-down (I've left it running for
over 15 mins!)
I have tried setting up a new "Set text of container"
behavior and the same
thing happens.Oh it truly needs work...
http://www.jackbooks.com/Wystan/Regional/Regionalism.htm
Even on a simple new page with a couple of divs this
behaviour is now very
slow and the line of asterisks comes up while waiting for the
dialog to
load. What has changed? How can a simple behaviour be now so
demanding?
"Murray *ACE*" <[email protected]> wrote
in message
news:f4opvn$sod$[email protected]..
> Can we see the page, please?
>
> --
> Murray --- ICQ 71997575
> Adobe Community Expert
> (If you *MUST* email me, don't LAUGH when you do so!)
> ==================
>
http://www.dreamweavermx-templates.com
- Template Triage!
>
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
>
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
>
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
> ==================
>
>
> "Stephen C" <[email protected]>
wrote in message
> news:f4nd0t$8lq$[email protected]..
>> When I try to change pages which use the "Set text
of container" behavior
>> it crashes DW-CS3. The dialog which used to come up
first shows a series
>> of asterisks in the drop-down for the container
selected, and the CPU
>> does overtime for about a minute before the correct
values appear. If I
>> change any values and OK it, then CPU starts using
over 90% on DW and
>> nothing happens until I force a shut-down (I've left
it running for over
>> 15 mins!)
>>
>> I have tried setting up a new "Set text of
container" behavior and the
>> same thing happens.
>>
> -
How can i get the read text in the SRM?
Hi Experts,
I need to do the business add-in in SRM. But i don't know how to find out the item text field.
Does anybody know how to find it?
Regards,
Lukehi
You need to give the Item GUID
ID ->ITXT
Language -> EN
Name ->ITEM GUID
Object -> BBP_PD
READ_TEXT FUNCTION MODULE
You will get the Text in the LINES
my technical friend helped me. he is deserved for this.
Muthu -
HT204053 How do you get the set-up directions
How do you get the step by step instructions to set up your ipad?
http://www.apple.com/support/ipad/getstarted/
-
How can i get the correct text from the url which has the mulitp-languages?
hi, all
i built a application and deployed it on sun application server 8.1. when i request a url which include some multi-languages (for example http://xxx.com/servlet?value=XXX. the 'XXX' may be simply chinese. ), i got the ??? instead of the correct text. how can i do it? in tomcat server, i can set the URIEncoding=GBK to get the correct code in server.xml. how can i do it in sun app server?
thanks.Ok, it is unclear on what is happening here.
Are you saying that when the webclient gets the data that it is not honoring the quote characters? Or the processing of the data buffer is causing issues?
This is what I see the of your example text which is trying to be parse out:
<a onmouseover="EnterContent('ToolTip','תווית על בגד: ’’תן לאישה לכבס. זה תפקידה’’','<u><span style=color:#000099;>כתב: Spook בתאריך: 08.03.15 שעה: 22:11</span></u><br>מחאת טוויטר קמה בעקבות תוויות שוביניסטיות שהדפיסה חברת אופנה באינדונזיה לפיהן תפקיד הכביסה מוטל על האישה. החברה התנצלה אך כנראה רק עשתה רק יותר נזק לע...'); Activate();">";
It appears to me that the escapes `’` does not have matching `“` anywhere within the tooltip. So it appears that the page properly places left quotes in when processing the page, but the raw html has broken text.
Hence a garbage in, garbage out situation.
William Wegerson (www.OmegaCoder.Com) -
The text is in hebrew so the problem is that sometimes the quotation marks not in the right place.
For example i have this text: תווית
על בגד: ''תן לאישה לכבס. זה תפקידה''
This is the source original text you can see the quotations marks and they are not in the right place and all i did is copy paste.
And this is a screenshot of how this text looks like in the website in the original:
You can see now where the quotations marks should be.
Now this is how i'm using the text in my program:
First of all i'm using a webclient to download the page from the website and i'm also encoding it to windows-1255 since it's in hebrew.
using (var webClient = new WebClient())
webClient.Headers.Add("user-agent", "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.0.3705;)");
byte[] myDataBuffer = webClient.DownloadData("http://rotter.net/scoopscache.html");
page = Encoding.GetEncoding("windows-1255").GetString(myDataBuffer);
Then i'm extracting the places i need by reading the html file lines and parsing the right text and it's link.
string loc;
List<string> metas = new List<string>();
List<string> metas1 = new List<string>();
List<string> lockedLinks1 = new List<string>();
string text = "";
string mys = "";
public List<string> LockedThreads(string filename)
lockedThreads = new List<string>();
lockedLinks = new List<string>();
Regex textRegex = new Regex("ToolTip.*?(?=','<)");
string[] fall = File.ReadAllLines(filename);
for (int i = 0; i < fall.Length; i++)
if (fall[i].Contains("http://rotter.net") && fall[i].Contains("locked")||
fall[i].Contains("locked_icon_general") ||
fall[i].Contains("locked_icon_anchor") ||
fall[i].Contains("icon_anchor") ||
fall[i].Contains("locked_icon_fire") ||
fall[i].Contains("locked_icon_sport") ||
fall[i].Contains("locked_icon_camera") ||
fall[i].Contains("locked_icon_movie"))
Regex linkParser = new Regex(@"\b(?:https?://|www\.)\S+\b", RegexOptions.Compiled | RegexOptions.IgnoreCase);
foreach (Match m in linkParser.Matches(fall[i + 2]))
if (m.Value.Contains("><b"))
loc = m.Value.Replace("\"><b", string.Empty);
lockedLinks.Add(loc);
string txt = fall[i - 1];
string text = textRegex.Match(txt).Value.Replace("ToolTip','", String.Empty);
if (text.Contains("’"))
text = text.Replace("’", string.Empty);
lockedThreads.Add(text);
Already here on the List lockedThreads you can see the quotation marks not in the right place as in the original:
After i'm parsing the text and links and adding them to the Lists in another class i'm doing a comparison using this Lists:
foreach (List<string> l_branch in ListsExtractions.responsers)
TreeNode l_node = treeView1.Nodes.Add(l_branch[l_branch.Count - 1]);
if (ListsExtractions.lockedThreads.Contains(l_node.Text))
l_node.ImageIndex = 0;
l_node.SelectedImageIndex = 0;
for (int l_count = 0; l_count < l_branch.Count - 1; l_count++)
TreeNode l_subnode = l_node.Nodes.Add(l_branch[l_count]);
if (ListsExtractions.lockedThreads.Contains(l_subnode.Text))
l_subnode.ImageIndex = 0;
l_subnode.SelectedImageIndex = 0;
The problem is in the line:
if (ListsExtractions.lockedThreads.Contains(l_node.Text))
When it's getting to the line with the quotation marks it's never equal.
Now there are more quotation marks.
In general the problem when comparing both text if it's having quotation marks it's not the same.
So i have two options:
1. To fix it somehow so the quotation marks will be the same in both variables when comparing and also the same like in the original as they show in the html page.
2. To remove the quotation marks from both variables.
What should i do ? And how ? I was prefer to use the original quotation marks like in the original since they have a meaning in the place they should be. The question is how can i do it ?
This is example of the block from the html file where the text with the quotation marks is:
<TD ALIGN="RIGHT" VALIGN="TOP"> <font size=-1 color=#ff9933><b>9418</b></font> </TD></TR><TR BGCOLOR="#eeeeee">
<TD ALIGN="RIGHT" VALIGN="TOP">
<body onmousemove="overhere()">
<a onmouseover="EnterContent('ToolTip','תווית על בגד: ’’תן לאישה לכבס. זה תפקידה’’','<u><span style=color:#000099;>כתב: Spook בתאריך: 08.03.15 שעה: 22:11</span></u><br>מחאת טוויטר קמה בעקבות תוויות שוביניסטיות שהדפיסה חברת אופנה באינדונזיה לפיהן תפקיד הכביסה מוטל על האישה. החברה התנצלה אך כנראה רק עשתה רק יותר נזק לע...'); Activate();" onmouseout="deActivate()" href="javascript:void(0)">
<img src="http://rotter.net/forum/Images/new_locked_icon_general.gif" border="0"></a></TD><TD ALIGN="right" VALIGN="TOP" WIDTH="55%">
<FONT CLASS='text15bn'><FONT FACE="Arial">
<a href="http://rotter.net/cgi-bin/forum/dcboard.cgi?az=read_count&om=189696&forum=scoops1"><b>
<font color="898A8E">תווית על בגד: ''תן לאישה לכבס. זה תפקידה''</b>
</a></font></TD>Ok, it is unclear on what is happening here.
Are you saying that when the webclient gets the data that it is not honoring the quote characters? Or the processing of the data buffer is causing issues?
This is what I see the of your example text which is trying to be parse out:
<a onmouseover="EnterContent('ToolTip','תווית על בגד: ’’תן לאישה לכבס. זה תפקידה’’','<u><span style=color:#000099;>כתב: Spook בתאריך: 08.03.15 שעה: 22:11</span></u><br>מחאת טוויטר קמה בעקבות תוויות שוביניסטיות שהדפיסה חברת אופנה באינדונזיה לפיהן תפקיד הכביסה מוטל על האישה. החברה התנצלה אך כנראה רק עשתה רק יותר נזק לע...'); Activate();">";
It appears to me that the escapes `’` does not have matching `“` anywhere within the tooltip. So it appears that the page properly places left quotes in when processing the page, but the raw html has broken text.
Hence a garbage in, garbage out situation.
William Wegerson (www.OmegaCoder.Com) -
How do I get the event / text to show on my calendar?
In my calendar, when on the day, the text / event is not showing and it used to. If I click on it, it's still there but I want the event to show at a quick glance.
How do I get that back?Hello DWarmke
I'm very sorry your having calendar issues. Let's see if we can get this fixed the reminder time may have elapsed. Here's a great link: http://vz.to/1q2k4vJ Try deleting the event and readding.
Sincerely
JoeL_VZW
Follow us on Twitter @VZWSupport -
How can I get the setting icon back after upgrading to ios 7 on ipod
I am going round in circles. I can't get to Settings to fix anything because the Setting icon is not showing. What can I do?
Opps, I forgot that.
Have you tried using the Search feature to tru to find Settings?
Next
- Reset the iOS device. Nothing will be lost
Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
least ten seconds, until the Apple logo appears.
- Restore from backup. See:
iOS: How to back up
- Restore to factory settings/new iOS device. -
Itunes said I needed to do the upgrade to the new OS. So I downloaded the new OS and all the contacts that I have added over the last 2 months just have names and no other information. I tried re-syncing with my computer and that did not work and now that info is missing on my computer. Is there any way I can get the information back????
No, you can't downgrade iOS. You should be able to restore the address book on your computer from your backup, though. Windows address book probably got wiped on the first sync after the upgrade completed. It sounds like the iPhone may have been disconnected before the entire restore cycle was complete if the contact records in Windows Address book got munged.
-
How can i get the additional text fields in the ALV methods
Hi all,
I have 2 different layouts in the same screen, here i am using the 2 custom containers,for each container having the method called SET_TABLE_FOR_FIRST_DISPLAY, in this i have used the Title through the gridtitle field, now i need to display some more texts under the title OR in the top of the layouts.
Please suggest me.
Thanks
GiridharHi,
check this code, here i developed using splitter container, and implemented top of page event. check it. and i documented it also.
REPORT ZTEST1234_ALV_TOP MESSAGE-ID ZZ .
DATA: G_GRID TYPE REF TO CL_GUI_ALV_GRID.
DATA: L_VALID TYPE C,
V_FLAG,
V_DATA_CHANGE,
V_ROW TYPE LVC_S_ROW,
V_COLUMN TYPE LVC_S_COL,
V_ROW_NUM TYPE LVC_S_ROID.
DATA: IT_ROW_NO TYPE LVC_T_ROID,
X_ROW_NO TYPE LVC_S_ROID.
DATA:BEGIN OF ITAB OCCURS 0,
VBELN LIKE LIKP-VBELN,
POSNR LIKE LIPS-POSNR,
CELLCOLOR TYPE LVC_T_SCOL, "required for color
DROP(10),
END OF ITAB.
"The Below Definitions Must.....
DATA:
* Reference to document
DG_DYNDOC_ID TYPE REF TO CL_DD_DOCUMENT,
* Reference to split container
DG_SPLITTER TYPE REF TO CL_GUI_SPLITTER_CONTAINER,
* Reference to grid container
DG_PARENT_GRID TYPE REF TO CL_GUI_CONTAINER,
* Reference to html container
DG_HTML_CNTRL TYPE REF TO CL_GUI_HTML_VIEWER,
* Reference to html container
DG_PARENT_HTML TYPE REF TO CL_GUI_CONTAINER.
"up to here
* CLASS lcl_event_handler DEFINITION
CLASS LCL_EVENT_HANDLER DEFINITION .
PUBLIC SECTION .
METHODS:
**Hot spot Handler
HANDLE_HOTSPOT_CLICK FOR EVENT HOTSPOT_CLICK OF CL_GUI_ALV_GRID
IMPORTING E_ROW_ID E_COLUMN_ID ES_ROW_NO,
**Double Click Handler
HANDLE_DOUBLE_CLICK FOR EVENT DOUBLE_CLICK OF CL_GUI_ALV_GRID
IMPORTING E_ROW E_COLUMN ES_ROW_NO,
TOP_OF_PAGE FOR EVENT TOP_OF_PAGE "event handler
OF CL_GUI_ALV_GRID
IMPORTING E_DYNDOC_ID.
* END_OF_LIST FOR EVENT end_of_list "event handler
* OF CL_GUI_ALV_GRID
* IMPORTING E_DYNDOC_ID.
ENDCLASS. "lcl_event_handler DEFINITION
* CLASS lcl_event_handler IMPLEMENTATION
CLASS LCL_EVENT_HANDLER IMPLEMENTATION.
*Handle Hotspot Click
METHOD HANDLE_HOTSPOT_CLICK .
CLEAR: V_ROW,V_COLUMN,V_ROW_NUM.
V_ROW = E_ROW_ID.
V_COLUMN = E_COLUMN_ID.
V_ROW_NUM = ES_ROW_NO.
* MESSAGE I000 WITH V_ROW 'clicked'.
CLEAR IT_ROW_NO[].
X_ROW_NO-ROW_ID = V_ROW.
APPEND X_ROW_NO TO IT_ROW_NO .
CALL METHOD G_GRID->SET_SELECTED_ROWS
EXPORTING
IT_ROW_NO = IT_ROW_NO.
ENDMETHOD. "lcl_event_handler
*Handle Double Click
METHOD HANDLE_DOUBLE_CLICK.
CLEAR: V_ROW,V_COLUMN,V_ROW_NUM.
V_ROW = E_ROW.
V_COLUMN = E_COLUMN.
V_ROW_NUM = ES_ROW_NO.
IF E_COLUMN = 'VBELN'.
SET PARAMETER ID 'VL' FIELD ITAB-VBELN.
CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN.
ENDIF.
IF E_COLUMN = 'POSNR'.
SET PARAMETER ID 'VL' FIELD ITAB-VBELN.
CALL TRANSACTION 'VL03N' AND SKIP FIRST SCREEN."
ENDIF.
ENDMETHOD. "handle_double_click
* METHOD END_OF_LIST. "implementation
** Top-of-page event
* PERFORM EVENT_TOP_OF_PAGE USING DG_DYNDOC_ID.
* ENDMETHOD. "top_of_page
METHOD TOP_OF_PAGE. "implementation
* Top-of-page event
PERFORM EVENT_TOP_OF_PAGE USING DG_DYNDOC_ID.
ENDMETHOD. "top_of_page
ENDCLASS. "LCL_EVENT_HANDLER IMPLEMENTATION
*& Global Definitions
DATA: G_CUSTOM_CONTAINER TYPE REF TO CL_GUI_CUSTOM_CONTAINER,"Container1
G_HANDLER TYPE REF TO LCL_EVENT_HANDLER. "handler
DATA: OK_CODE LIKE SY-UCOMM,
SAVE_OK LIKE SY-UCOMM,
G_CONTAINER1 TYPE SCRFNAME VALUE 'TEST',
GS_LAYOUT TYPE LVC_S_LAYO.
data: v_lines type i.
data: v_line(3) type c.
*- Fieldcatalog for First and second Report
DATA: IT_FIELDCAT TYPE LVC_T_FCAT,
X_FIELDCAT TYPE LVC_S_FCAT,
LS_VARI TYPE DISVARIANT.
* START-OF_SELECTION
START-OF-SELECTION.
SELECT VBELN
POSNR
FROM LIPS
UP TO 20 ROWS
INTO CORRESPONDING FIELDS OF TABLE ITAB.
describe table itab lines v_lines.
END-OF-SELECTION.
IF NOT ITAB[] IS INITIAL.
CALL SCREEN 100.
ELSE.
MESSAGE I002 WITH 'NO DATA FOR THE SELECTION'(004).
ENDIF.
*& Form CREATE_AND_INIT_ALV
* text
FORM CREATE_AND_INIT_ALV .
DATA: LT_EXCLUDE TYPE UI_FUNCTIONS.
"attention.....from here
"split your container here...into two parts
"create the container
CREATE OBJECT G_CUSTOM_CONTAINER
EXPORTING CONTAINER_NAME = G_CONTAINER1.
"this is for top of page
* Create TOP-Document
CREATE OBJECT DG_DYNDOC_ID
EXPORTING STYLE = 'ALV_GRID'.
* Create Splitter for custom_container
CREATE OBJECT DG_SPLITTER
EXPORTING PARENT = G_CUSTOM_CONTAINER
ROWS = 2
COLUMNS = 1.
* Split the custom_container to two containers and move the reference
* to receiving containers g_parent_html and g_parent_grid
"i am allocating the space for grid and top of page
CALL METHOD DG_SPLITTER->GET_CONTAINER
EXPORTING
ROW = 1
COLUMN = 1
RECEIVING
CONTAINER = DG_PARENT_HTML.
CALL METHOD DG_SPLITTER->GET_CONTAINER
EXPORTING
ROW = 2
COLUMN = 1
RECEIVING
CONTAINER = DG_PARENT_GRID.
* CALL METHOD DG_SPLITTER->GET_CONTAINER
* EXPORTING
* ROW = 2
* COLUMN = 1
* RECEIVING
* CONTAINER = DG_PARENT_HTML.
* CALL METHOD DG_SPLITTER->GET_CONTAINER
* EXPORTING
* ROW = 1
* COLUMN = 1
* RECEIVING
* CONTAINER = DG_PARENT_GRID.
"you can set the height of it
* Set height for g_parent_html
CALL METHOD DG_SPLITTER->SET_ROW_HEIGHT
EXPORTING
ID = 1
HEIGHT = 5.
"from here as usual..you need to specify parent as splitter part
"which we alloted for grid
CREATE OBJECT G_GRID
EXPORTING I_PARENT = DG_PARENT_GRID.
* Set a titlebar for the grid control
CLEAR GS_LAYOUT.
GS_LAYOUT-GRID_TITLE = TEXT-003.
GS_LAYOUT-ZEBRA = SPACE.
GS_LAYOUT-CWIDTH_OPT = 'X'.
GS_LAYOUT-NO_ROWMARK = 'X'.
GS_LAYOUT-CTAB_FNAME = 'CELLCOLOR'.
CALL METHOD G_GRID->REGISTER_EDIT_EVENT
EXPORTING
I_EVENT_ID = CL_GUI_ALV_GRID=>MC_EVT_ENTER.
CREATE OBJECT G_HANDLER.
SET HANDLER G_HANDLER->HANDLE_DOUBLE_CLICK FOR G_GRID.
SET HANDLER G_HANDLER->HANDLE_HOTSPOT_CLICK FOR G_GRID.
* SET HANDLER G_HANDLER->END_OF_LIST FOR G_GRID.
SET HANDLER G_HANDLER->TOP_OF_PAGE FOR G_GRID.
DATA: LS_CELLCOLOR TYPE LVC_S_SCOL. "required for color
DATA: L_INDEX TYPE SY-TABIX.
"Here i am changing the color of line 1,5,10...
"so you can change the color of font conditionally
LOOP AT ITAB.
L_INDEX = SY-TABIX.
IF L_INDEX = 1 OR L_INDEX = 5 OR L_INDEX = 10.
LS_CELLCOLOR-FNAME = 'VBELN'.
LS_CELLCOLOR-COLOR-COL = '6'.
LS_CELLCOLOR-COLOR-INT = '0'.
LS_CELLCOLOR-COLOR-INV = '1'.
APPEND LS_CELLCOLOR TO ITAB-CELLCOLOR.
MODIFY ITAB INDEX L_INDEX TRANSPORTING CELLCOLOR.
LS_CELLCOLOR-FNAME = 'POSNR'.
LS_CELLCOLOR-COLOR-COL = '6'.
LS_CELLCOLOR-COLOR-INT = '0'.
LS_CELLCOLOR-COLOR-INV = '1'.
APPEND LS_CELLCOLOR TO ITAB-CELLCOLOR.
MODIFY ITAB INDEX L_INDEX TRANSPORTING CELLCOLOR.
ENDIF.
ENDLOOP.
* setting focus for created grid control
CALL METHOD CL_GUI_CONTROL=>SET_FOCUS
EXPORTING
CONTROL = G_GRID.
* Build fieldcat and set editable for date and reason code
* edit enabled. Assign a handle for the dropdown listbox.
PERFORM BUILD_FIELDCAT.
PERFORM SET_DRDN_TABLE.
* Optionally restrict generic functions to 'change only'.
* (The user shall not be able to add new lines).
PERFORM EXCLUDE_TB_FUNCTIONS CHANGING LT_EXCLUDE.
**Vaiant to save the layout
LS_VARI-REPORT = SY-REPID.
LS_VARI-HANDLE = SPACE.
LS_VARI-LOG_GROUP = SPACE.
LS_VARI-USERNAME = SPACE.
LS_VARI-VARIANT = SPACE.
LS_VARI-TEXT = SPACE.
LS_VARI-DEPENDVARS = SPACE.
**Calling the Method for ALV output
CALL METHOD G_GRID->SET_TABLE_FOR_FIRST_DISPLAY
EXPORTING
IT_TOOLBAR_EXCLUDING = LT_EXCLUDE
IS_VARIANT = LS_VARI
IS_LAYOUT = GS_LAYOUT
I_SAVE = 'A'
CHANGING
IT_FIELDCATALOG = IT_FIELDCAT
IT_OUTTAB = ITAB[].
"do these..{
* Initializing document
CALL METHOD DG_DYNDOC_ID->INITIALIZE_DOCUMENT.
* Processing events
CALL METHOD G_GRID->LIST_PROCESSING_EVENTS
EXPORTING
I_EVENT_NAME = 'TOP_OF_PAGE'
I_DYNDOC_ID = DG_DYNDOC_ID.
"end }
* Set editable cells to ready for input initially
CALL METHOD G_GRID->SET_READY_FOR_INPUT
EXPORTING
I_READY_FOR_INPUT = 1.
ENDFORM. "CREATE_AND_INIT_ALV
*& Form EXCLUDE_TB_FUNCTIONS
* text
* -->PT_EXCLUDE text
FORM EXCLUDE_TB_FUNCTIONS CHANGING PT_EXCLUDE TYPE UI_FUNCTIONS.
* Only allow to change data not to create new entries (exclude
* generic functions).
DATA LS_EXCLUDE TYPE UI_FUNC.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_DELETE_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_APPEND_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_INSERT_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_MOVE_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_COPY.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_CUT.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_PASTE_NEW_ROW.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
LS_EXCLUDE = CL_GUI_ALV_GRID=>MC_FC_LOC_UNDO.
APPEND LS_EXCLUDE TO PT_EXCLUDE.
ENDFORM. " EXCLUDE_TB_FUNCTIONS
*& Form build_fieldcat
* Fieldcatalog
FORM BUILD_FIELDCAT .
DATA: L_POS TYPE I.
L_POS = L_POS + 1.
X_FIELDCAT-SCRTEXT_M = 'Delivery'(024).
X_FIELDCAT-FIELDNAME = 'VBELN'.
X_FIELDCAT-TABNAME = 'IT_FINAL'.
X_FIELDCAT-COL_POS = L_POS.
X_FIELDCAT-NO_ZERO = 'X'.
X_FIELDCAT-OUTPUTLEN = '10'.
X_FIELDCAT-HOTSPOT = 'X'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_POS = L_POS + 1.
X_FIELDCAT-SCRTEXT_M = 'Item'(025).
X_FIELDCAT-FIELDNAME = 'POSNR'.
X_FIELDCAT-TABNAME = 'IT_FINAL'.
X_FIELDCAT-COL_POS = L_POS.
X_FIELDCAT-OUTPUTLEN = '5'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
L_POS = L_POS + 1.
X_FIELDCAT-SCRTEXT_M = 'Drop'(025).
X_FIELDCAT-FIELDNAME = 'DROP'.
X_FIELDCAT-TABNAME = 'IT_FINAL'.
X_FIELDCAT-COL_POS = L_POS.
X_FIELDCAT-OUTPUTLEN = '5'.
X_FIELDCAT-EDIT = 'X'.
X_FIELDCAT-DRDN_HNDL = '1'.
X_FIELDCAT-DRDN_ALIAS = 'X'.
APPEND X_FIELDCAT TO IT_FIELDCAT.
CLEAR X_FIELDCAT.
ENDFORM. " build_fieldcat
*& Module STATUS_0100 OUTPUT
* text
MODULE STATUS_0100 OUTPUT.
SET PF-STATUS 'MAIN100'.
SET TITLEBAR 'MAIN100'.
IF G_CUSTOM_CONTAINER IS INITIAL.
**Initializing the grid and calling the fm to Display the O/P
PERFORM CREATE_AND_INIT_ALV.
ENDIF.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE USER_COMMAND_0100 INPUT.
CASE SY-UCOMM.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. " USER_COMMAND_0100 INPUT
*& Form SET_DRDN_TABLE
* text
FORM SET_DRDN_TABLE.
DATA:LT_DRAL TYPE LVC_T_DRAL,
LS_DRAL TYPE LVC_S_DRAL.
LOOP AT ITAB .
* First listbox (handle '1').
IF SY-INDEX = 1.
LS_DRAL-HANDLE = '1'.
LS_DRAL-VALUE = ' '.
LS_DRAL-INT_VALUE = ' '.
ELSE.
LS_DRAL-HANDLE = '1'.
LS_DRAL-VALUE = ITAB-POSNR.
LS_DRAL-INT_VALUE = ITAB-POSNR.
ENDIF.
APPEND LS_DRAL TO LT_DRAL.
ENDLOOP.
**Setting the Drop down table for Reason Code
CALL METHOD G_GRID->SET_DROP_DOWN_TABLE
EXPORTING
IT_DROP_DOWN_ALIAS = LT_DRAL.
ENDFORM. " set_drdn_table
*& Form EVENT_TOP_OF_PAGE
* text
* -->DG_DYNDOC_ID text
FORM EVENT_TOP_OF_PAGE USING DG_DYNDOC_ID TYPE REF TO CL_DD_DOCUMENT.
"this is more clear.....check it
"first add text, then pass it to comentry write fm
DATA : DL_TEXT(255) TYPE C. "Text
* Populating header to top-of-page
CALL METHOD DG_DYNDOC_ID->ADD_TEXT
EXPORTING
TEXT = 'Test Report'
SAP_STYLE = CL_DD_AREA=>HEADING.
* Add new-line
CALL METHOD DG_DYNDOC_ID->NEW_LINE.
CLEAR : DL_TEXT.
* Move program ID
CONCATENATE 'Program Name :' SY-REPID
INTO DL_TEXT SEPARATED BY SPACE.
* Add Program Name to Document
PERFORM ADD_TEXT USING DL_TEXT.
* Add new-line
CALL METHOD DG_DYNDOC_ID->NEW_LINE.
CLEAR : DL_TEXT.
* Move User ID
CONCATENATE 'User ID :' SY-UNAME INTO DL_TEXT SEPARATED BY SPACE
* Add User ID to Document
PERFORM ADD_TEXT USING DL_TEXT.
* Add new-line
CALL METHOD DG_DYNDOC_ID->NEW_LINE.
CLEAR : DL_TEXT.
* Move count (no of records).
move v_lines to v_line.
CONCATENATE 'No of records :' v_line INTO DL_TEXT SEPARATED BY SPACE.
* Add Client to Document
PERFORM ADD_TEXT USING DL_TEXT.
* Add new-line
CALL METHOD DG_DYNDOC_ID->NEW_LINE.
CLEAR : DL_TEXT.
* Move date
WRITE SY-DATUM TO DL_TEXT.
CONCATENATE 'Date :' DL_TEXT INTO DL_TEXT SEPARATED BY SPACE.
* Add Date to Document
PERFORM ADD_TEXT USING DL_TEXT.
* Add new-line
CALL METHOD DG_DYNDOC_ID->NEW_LINE.
CLEAR : DL_TEXT.
* Move time
WRITE SY-UZEIT TO DL_TEXT.
CONCATENATE 'Time :' DL_TEXT INTO DL_TEXT SEPARATED BY SPACE.
* Add Time to Document
PERFORM ADD_TEXT USING DL_TEXT.
* Add new-line
CALL METHOD DG_DYNDOC_ID->NEW_LINE.
* Populating data to html control
PERFORM HTML.
ENDFORM. " EVENT_TOP_OF_PAGE
*& Form ADD_TEXT
* To add Text
FORM ADD_TEXT USING P_TEXT TYPE SDYDO_TEXT_ELEMENT.
* Adding text
CALL METHOD DG_DYNDOC_ID->ADD_TEXT
EXPORTING
TEXT = P_TEXT
SAP_EMPHASIS = CL_DD_AREA=>HEADING.
ENDFORM. " ADD_TEXT
*& Form HTML
* text
FORM HTML.
DATA : DL_LENGTH TYPE I, " Length
DL_BACKGROUND_ID TYPE SDYDO_KEY VALUE SPACE. " Background_id
* Creating html control
IF DG_HTML_CNTRL IS INITIAL.
CREATE OBJECT DG_HTML_CNTRL
EXPORTING
PARENT = DG_PARENT_HTML.
ENDIF.
* Reuse_alv_grid_commentary_set
CALL FUNCTION 'REUSE_ALV_GRID_COMMENTARY_SET'
EXPORTING
DOCUMENT = DG_DYNDOC_ID
BOTTOM = SPACE
IMPORTING
LENGTH = DL_LENGTH.
* Get TOP->HTML_TABLE ready
CALL METHOD DG_DYNDOC_ID->MERGE_DOCUMENT.
* Set wallpaper
CALL METHOD DG_DYNDOC_ID->SET_DOCUMENT_BACKGROUND
EXPORTING
PICTURE_ID = DL_BACKGROUND_ID.
* Connect TOP document to HTML-Control
DG_DYNDOC_ID->HTML_CONTROL = DG_HTML_CNTRL.
* Display TOP document
CALL METHOD DG_DYNDOC_ID->DISPLAY_DOCUMENT
EXPORTING
REUSE_CONTROL = 'X'
PARENT = DG_PARENT_HTML
EXCEPTIONS
HTML_DISPLAY_ERROR = 1.
IF SY-SUBRC NE 0.
MESSAGE I999 WITH 'Error in displaying top-of-page'(036).
ENDIF.
ENDFORM. " HTML
Regards
vijay -
Set Text in Container- Different Classes each line of text
I'm using the Set text of Container behavior to function as a caption in my displaced rollover. It works fine but there is one problem I'm having.
My orginal "placeholder" caption looks something like this:
Project Name
Location
Photographer
I achieved this by using "span" on the orginal caption and each line has a class.
However when I rollover it loses it's styling. How do I apply the classes to the text in the behavior?
ThanksSorta.
So I would type in this below in set behavior box?
<span class="projectname">Project Name<br /> </span> etc..... -
How to get the Underlined text in JTextPane
I have a JtextPane with text say "i _like java_ it is a _good language_".
in the above text i have made "like java" and "good language" underlined. And i have added a mouse listener to this JTextpane. the whole idea is to create a hyperlink so that when the user clicks anywhere on "like java" then i want to get the complete text("like java") where i clicked and using this text i want to do some operation. How can i get the underlined text?
thanks.it was the same i question what i had posted. i didn't get reply there so i posted the same question in a new topic.
-
Get the long text into BADI from text editor
hi all,
I implemented BADI ME_PROCESS_PO_CUST, before saving the purchase order i am calling the text editor where i am writng
the long text . but when save the text from the text editor the long text in the editor is not updating to the BADI.
Can anybody help how can i get the long text to the BADI.
Regards,
MadhaviHi
Have you tried with interface 'IF_PURCHASE_ORDER_MM' with these methods in the BADI?
IF_LONGTEXTS_MM~GET_TEXTOBJECT
IF_LONGTEXTS_MM~GET_TYPES
IF_LONGTEXTS_MM~GET_TEXT
IF_LONGTEXTS_MM~SET_TEXT
IF_LONGTEXTS_MM~ADOPT_TEXT
IF_LONGTEXTS_MM~DELETE_TEXT
IF_LONGTEXTS_MM~EDIT_TEXT
Regards
Eduardo -
I get the long text description 0f transaction fb03
Hi Gurus,
How can I get the long text description in the information view (field <b>ZEILE</b>,
data element EENO_ZEILE) on the G/L account documet overview(transaction Fb03)?
My prob is, This field stored in a structure called
Thanks in ad.
Regds,
BalaHi,
a) Find out for which <b>table</b> this long text is linked.
b) Go to <b>TTXOB</b> table and in the field <b>TDOBJECT</b>, check whether this entry is present.
c) If present, then use FM READ_TEXT, to get the long text value.
Important parameters to be passed in READ_TEXT
a) ID
b) Language (EN??)
c) Name ( I believe in this case it would be ZEILE)
d) Object (TTXOB-TDOBJECT value)
Regards,
Subramanian V.
Maybe you are looking for
-
Export selected item as PNG with Alpha
Hello. I'm building game graphics in Illustrator. I have thousands of individual sprites to export, up until now I've been copying and pasting in Photoshop and exporting through there, but that is tedious and slow. Inkscape has an option to export
-
Campus / Enterprise VLAN Security Integration
Ji Jeal One of the things that always bothers me about (including the many different ways of) deploying guest wireless is the need to have a VLAN that contains untrusted guest traffic on the same switches that carry trusted corporate traffic. Given
-
Weblogic SOA 12.1.3: Integration with Oracle 9i Database
All, We have a client who currently adopt BPEL 10g (10.1.3.4). Currently we are looking to updrade the client to SOA Suite 12.1.3. As part of their existing architecture, there are a number of Oracle 9i databases that the BPEL components integrate wi
-
Oracle WebLogic End of Life documentation.....
I've been trying to find information on WebLogic end of support documentation for the WebLogic Server 10.x products. Can anyone point me to a link? Thanks in advance...
-
P-Track Application Not Sending Mail
I'm running the P-Track application on APEX 4.2.2 w/ Embeded PL/SQL gateway Oracle 11.2.0.2 DB. Whenever I try to send a report via email from the app it says it was successfully sent, however no email is received. Whenever I check the APEX mail queu