Create Component WIndow with different Component inside
Hi,
I want to pop up a ComponentWindow and put there some other
Components like TextFields/Buttons/Checkboxes inside, dynamicly.
I tryed to figgure it out by myself but had no success :/
Can someone help me?
I really like the look of float box but I have been unable to get it working in Dreamweaver CS4.
I put the script in the head tag like the instruction said and also unzipped files into root folder.
<link type="text/css" rel="stylesheet" href="/onespirit/floatbox/floatbox.css" />
<script type="text/javascript" src="/onespirit/floatbox/floatbox.js"></script>
I put this in my body which is a image in the root folder.
<body>
<a href="image_one.jpg" class="floatbox" title="floatbox1" rev=""><img src="image_one.jpg" alt="" /></a>
</body>
So here is my code which is a simple test page I am trying to get working
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link type="text/css" rel="stylesheet" href="/onespirit/floatbox/floatbox.css" />
<script type="text/javascript" src="/onespirit/floatbox/floatbox.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>floatbox1</title>
<style type="text/css">
<!--
-->
</style>
</head>
<body>
<a href="image_one.jpg" class="floatbox" title="floatbox1" rev=""><img src="image_one.jpg" alt="" /></a>
</body>
</html>
Any help would be appreciated
Similar Messages
-
Creating a list with different row sizes...
I'm new to AS 3.0 and CS4 and I've been getting up to speed
on all of it. I've used the List component before with my own
CellRenderer. I now need to create a list with different row
heights. The List component is great and does everything that I
want but it requires all rows to be the same height.
I'm unsure of where to go. Creating my own class seems like a
lot of work. The TileList and Grid components don't allow different
sized (and dynamically changing) row heights either. Is there some
base class (SelectableList? BaseScrollPane?) that I should extend
or do I need to just bite the bullet and write it all from scratch?
I need each row to have it's own height and interaction with
a row could change the height of the row. The main use is a list of
data. If the user clicks in an item, it turns the display into
something they can edit (which will need more height).
Thanks for any thoughts on a direction I should think about.
By the way, I really like that AS 3.0 is much more consistent of a
programming language than previous MX versions that I've used.
We're doing a lot of AS/Flash/AIR work with it and it's turning
into a wonderful environment...Any ideas about this??
-
Create n tables with different number names
Hi guys, I work with SQL Server 2008 and OS Windows Server 2008 R2 64 bits. I have to create 10 tables with different names e.g. 'Image1', 'Image2', and so on. For this goal, I use a loop and concatenation. Here is the code:
DECLARE @i INT
DECLARE @v_table_n CHAR
SET @i=1
SET @v_table_n='Image'
WHILE (@i<=10)
BEGIN
DECLARE @STR VARCHAR(100)
SET @STR = 'CREATE TABLE SQL_DB_Filestream.dbo.Image1' + @v_table_n + CAST(@i AS VARCHAR(10)) + ' (
[ID_RowFeatVec] INTEGER NOT NULL PRIMARY KEY,
[CF1] FLOAT,
[CF2] FLOAT,
[CF3] FLOAT
EXECUTE @STR
SET @i = @i + 1;
END
GO
As a result, an error message appears:
"The name 'CREATE TABLE SQL_DB_Filestream.dbo.Image1I1 (
[ID_RowFeatVec] INTEGER NOT NULL PRIMARY KEY' is not a valid identifier."
I have tried a lot of versions but it doesn't work.
What am I doing wrong?
Best wishes
SV_proj>> I have to create 10 tables with different names e.g. 'Image1', 'Image2', and so on. For this goal, I use a loop and concatenation. Here is the code: <<
1) An SQL Programmer would write ten CREATE TABLE statements. Are you old enough to know about Rube Goldberg? He was a cartoonist who invented inanely complex device for simple task!
2) Ten identical tables is a huge design flaw. It is so awful I want to use it in one of my books. Tables are sets. A set is completed whole, or as Cantor said “a many that is treated as a one” (it sounds cool in German or Esperanto).
3) We hate loops in SQL. This is a declarative language. I will bet you have no idea what that means.
What you want to do is mimic a magnetic tape file system from the 1950's. We used to put a label on the tapes based on the date or a sequence number. Not a completed whole.
--CELKO-- Books in Celko Series for Morgan-Kaufmann Publishing: Analytics and OLAP in SQL / Data and Databases: Concepts in Practice Data / Measurements and Standards in SQL SQL for Smarties / SQL Programming Style / SQL Puzzles and Answers / Thinking
in Sets / Trees and Hierarchies in SQL -
How to create a report with different page sizes
Hi,
I would like to create a report with different page sizes, it's possible to do it with diadem?
When I change the layout parameters, changes afect to all sheets...
Is there a way to change page size individually for each sheet?
Thanks in advance.
MarcHi Marc,
You can use the DocStart and DocEnd commands along with the PicPrint command to spool multiple print commands to the same output PDF file using the direct printer approach. This should enable you to programmatically specify the page size differently for each sheet that you add to the print job.
' Print PDF Page by Page.VBS
OPTION EXPLICIT
Dim i, Path, OldPrintName
Path = AutoActPath & "2D Stacked"
Call DataDelAll
Call DataFileLoad(Path & ".TDM")
PDFFileName = Path & " Page by Page.pdf"
IF FileExist(PDFFileName) THEN Call FileDelete(PDFFileName)
OldPrintName = PrintName
PrintName = "winspool,DIAdem PDF Export,LPT1:" ' Set to PDF printer
PDFResolution = "72 DPI" ' "2400 DPI" , "default"
PDFOptimization = TRUE
PDFFontsEmbedded = FALSE
PDFJPGCompressed = "high"
PrintOrient = "landscape" ' orient paper
Call PrintMaxScale("GRAPH") ' auto-max, see alternative margin setting variables below
PrintLeftMarg = 0.181
PrintTopMarg = 0.181
PrintWidth = 10.67
'PrintHeigth = 7 (read-only)
Call WndShow("REPORT")
Call DocStart ' Begin multi-page document/print job
FOR i = 1 TO 4
Call PicLoad(Path & ".TDR")
Call GraphSheetNGet(1)
Call GraphSheetRename(GraphSheetName, "Page " & i)
Call PicUpdate
Call PicPrint("WinPrint") ' Add a page to be printed
NEXT ' i
Call DocEnd ' End multi-page document/print job
PrintName = OldPrintName
Call ExtProgram(PDFFileName)
Brad Turpin
DIAdem Product Support Engineer
National Instruments -
Creating a .pdf with different page views
I'm tyring to create a .pdf with different page views. For example as the viewer goes through the .pdf some pages I would like viewed as "single page view" and others "two page view". Is this possible? I'm working with Adobe Acrobate Pro. Thanks for any suggestions.
It's possible to use the Page Open actions to trigger a view mode change but it's messy - if the user tries to override them because they prefer to zoom in, etc. then they'll get very annoyed when things keep resetting.
To create a Page Open action, open the thumbnails panel, right-click on a page, choose Page Properties, then the Actions tab. You can use the Execute a Menu Item tool to fire one of the view modes. -
How to create a window with its own window border other than the local system window border?
How to create a window with its own window border other than the local system window border?
For example, a border: a black line with a width 1 and then a transparent line with a width 5. Further inner, it is the content pane.
In JavaSE, there seems to have the paintComponent() method for the JFrame to realize the effect.Not sure why your code is doing that. I usually use an ObjectProperty<Point2D> to hold the initial coordinates of the mouse press, and set it to null on a mouse release. That seems to avoid the dragging being confused by mouse interaction with other nodes.
import javafx.application.Application;
import javafx.application.Platform;
import javafx.beans.property.ObjectProperty;
import javafx.beans.property.SimpleObjectProperty;
import javafx.collections.FXCollections;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Point2D;
import javafx.geometry.Pos;
import javafx.scene.Node;
import javafx.scene.Scene;
import javafx.scene.control.Button;
import javafx.scene.control.ChoiceBox;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.VBox;
import javafx.scene.paint.Color;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
import javafx.stage.Window;
public class CustomBorderExample extends Application {
@Override
public void start(Stage primaryStage) {
AnchorPane root = new AnchorPane();
root.setStyle("-fx-border-color: black; -fx-border-width: 1px; ");
enableDragging(root);
StackPane mainContainer = new StackPane();
AnchorPane.setTopAnchor(mainContainer, 5.0);
AnchorPane.setLeftAnchor(mainContainer, 5.0);
AnchorPane.setRightAnchor(mainContainer, 5.0);
AnchorPane.setBottomAnchor(mainContainer, 5.0);
mainContainer.setStyle("-fx-background-color: aliceblue;");
root.getChildren().add(mainContainer);
primaryStage.initStyle(StageStyle.TRANSPARENT);
final ChoiceBox<String> choiceBox = new ChoiceBox<>(FXCollections.observableArrayList("Item 1", "Item 2", "Item 3"));
final Button closeButton = new Button("Close");
VBox vbox = new VBox(10);
vbox.setAlignment(Pos.CENTER);
vbox.getChildren().addAll(choiceBox, closeButton);
mainContainer.getChildren().add(vbox);
closeButton.setOnAction(new EventHandler<ActionEvent>() {
@Override
public void handle(ActionEvent event) {
Platform.exit();
primaryStage.setScene(new Scene(root, 300, 200, Color.TRANSPARENT));
primaryStage.show();
private void enableDragging(final Node n) {
final ObjectProperty<Point2D> mouseAnchor = new SimpleObjectProperty<>(null);
n.addEventHandler(MouseEvent.MOUSE_PRESSED, new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
mouseAnchor.set(new Point2D(event.getX(), event.getY()));
n.addEventHandler(MouseEvent.MOUSE_RELEASED, new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
mouseAnchor.set(null);
n.addEventHandler(MouseEvent.MOUSE_DRAGGED, new EventHandler<MouseEvent>() {
@Override
public void handle(MouseEvent event) {
Point2D anchor = mouseAnchor.get();
Scene scene = n.getScene();
Window window = null ;
if (scene != null) {
window = scene.getWindow();
if (anchor != null && window != null) {
double deltaX = event.getX()-anchor.getX();
double deltaY = event.getY()-anchor.getY();
window.setX(window.getX()+deltaX);
window.setY(window.getY()+deltaY);
public static void main(String[] args) {
launch(args); -
Is it possible to create a Synonym with different column names
Hi,
I want to create a Synonym with different columns names (Columns not in original table) . I am not sure if this can be done . Any suggessions...
Thanks in advance....Synonyms are not limited to tables. Accroding to the SQL Reference, a synonym is:
an alternative name for a table, view, sequence, procedure, stored function, package, materialized view, Java class schema object, user-defined object type, or another synonym.
In fact, synonyms are not even validated until they are used:
SQL> create synonym my_synonym for table_which_does_not_exist;
Synonym created
SQL> select * from my_synonym;
select * from my_synonym
ORA-00980: synonym translation is no longer valid -
After I updated iTunes to 11.1.1 I coudn't create a compilation with different artistes anymore! Why??? I don't want the same album cover, like 100 times...
Thx
DJG5500Generally setting a common Album title and Album Artist will fix things.
For deeper problems see Grouping tracks into albums.
tt2 -
I inadvertently created 2 accounts with different email addresses - can I merge them?
I inadvertently created 2 accounts with different email addresses - can I merge them?
Hi have 2 accounts-accident,
Please contact Customer Care to have an agent assist you with this. You'll find the contact information here: Contact Customer Care
Best,
Sara -
Smartforms: Creating main windows in different pages
Hi all!
I am using smart forms, I tried to create 2 main windows in 2 different pages. I keep getting the following error: "Two main windows are not allowed." However, I have already seen an example where there are 2 main windows created in 2 different pages. Does anyone know of you how to solve this?
Thanks for your help.
Message was edited by: Hajar BelahsenHi Hajar,
You cannot have two main windows. But the main window can be associated to as many different pages that you want.
Check the program where you saw that the code inside the MAIN window is same. They have actually associated the window with the page. This is what termed as page-window.
Give feedback.
Regards,
Deva. -
How to create popup window with radio buttons and a input field
Hi Guys,
Can somebody give some directions to create a stand alone program to create a window popup with 2 radio button and an input field for getting text value. I need to update the text value in a custom table.
I will call this stand alone program from an user exit.
Please give me the guidance how go about it or please give any tutorial you have.
Thanks,
MiniHi,
There are multiple aspects of your requirements. So let's take them one at a time.
You can achieve it in the report program or you can use a combination of the both along.
You can create a standalone report program using the ABAP Editor (SE38). In the report program you can call the SAP Module pool program by CALL Screen <screen number>. And then in the module pool program you an create a subscreen and can handle the window popup with 2 radio button and an input field for getting the text.
For help - Module Pool programs you can search in ABAP Editor with DEMODYNPRO* and you will ge the entire demo code for all dialog related code.
For Report and other Module pool help you can have a look at the following:
http://help.sap.com/saphelp_nw70/helpdata/en/47/a1ff9b8d0c0986e10000000a42189c/frameset.htm
Hope this helps. Let me know if you need any more details.
Thanks,
Samantak. -
Creating a document with different page sizes.
I'm trying to produce a leaflet with different pages sizes. To try and explain what I mean I have included a picture of what I'd like the front cover to look like. When producing a booklet there doesn't seem to be a provision to individually alter each page size in the pages or document set up panel. Is there anyway around this or do I have to create each page seperately, export to pdf and then combine into the leaflet? Help gratefully received. tomas
The build booklet feature is for very basic booklets, not something like this.
Sorry, but you’ll need to make everything full size and then do the cutting.
Bob -
Creating Multiple Files with different name at Receiver side
Gurus -
Can anybd tell me how to generate multiple files at the Receiver side in the given target directory with different file names?
One source message will contain number "N" using which we have to generate files "N" number of times at the Receiver side.
Kindly help.hi,
are you following this blog?
provided you have SP>14 and no IDOC/HTTP involved.
and have you got the error you mentioned when testing with sample payload?
from where did you take the payload? if is from SXMB_MONI make sure you dont have <MESSAGE> tags in the payload,generally systems adds <MESSAGE> tags when you do multi mapping.
get the payload from SXMB_MONI right click ->view source payload(this is raw data) and test it.
it should be ok now.
and refer my discussion in the thread ,as I got he same error.
Split mapping created no messages -Mluti Mapping -
Create external window with webdynpro application
Hi,
is it possible to create an external window with another application?
The method if_wd_window_manager~create_window_for_cmp_usage would be great. But this method create only a modal popup.
Greetings
MarcusHi,
We can create external window using below method.
lo_api_component = wd_comp_controller->wd_get_api( ).
lo_window_manager = lo_api_component->get_window_manager( ).
lo_window = lo_window_manager->create_external_window(
url = l_url( "URL of the webdynpro application")
title = 'Submitted candidate'
has_menubar = abap_false
has_toolbar = abap_false
has_location = abap_false ).
lo_window->open( ).
Regards,
Lakshmi. -
Creating many arrays with different names
I'm trying to create many arrays with a different names by calling this method:
n=name of array
c= some string
public Array[] newArray(String n, String c)
n[n.length]= new String();
n[n.length]= c;
As you experts might guess this does not compile. Is it even possible to do this?no, you cannot make a dynamic variable like that.
and no, that is not the way to make arrays.
and no, there is no such thing as "Array[]" ( unless u have made an "Array" object ).
code for a new array is as such
public Object[] newArray(int size){
return new Object[size];
}called as such:
String[] strings = (String[]) newArray(10);
strings[0] = "hmmm";mmmmm -
Creating View Object with different criteria
Hi,
I have a requirement to execute the following queries in the application logic. We have YEAR table with mileage rates with different effective dates. If the service date is greater than any of the existing effective dates we need to get the rate with that effective date. if the service date is less than the existing effective dates, then we have to get the rate with least effective date.
SELECT mileage_rate, ... FROM year
WHERE eff_date = (SELECT MAX(eff_date) FROM year WHERE eff_date <= :bServiceDate)
SELECT MILEAGE_RATE, .... FROM YEAR WHERE
EFF_DATE = (SELECT MIN(EFF_DATE) FROM YEAR)
We have to execute the 1st query and if there is no matching records then we have to take the second query with min effective date. At present we are creating two view objects for the above scenario. Is there any possibility to create one view object with different criteria. What is the best solution to handle the above problem in ADF.
Thanks and Regards,
S R PrasadWell on the ViewObjectImpl you can fire the method getQueryHitCount() passing in the required ViewRowSetImpl. If you get the query hit count as 0, use can attached the other query and execute it.
Maybe you are looking for
-
Descriptions for attributes is not coming in PPOMA_BBP
Hi Friends, We are facing a problem. We have maintained the attributes for Purchasing Organisation. Currently we can see the description only in english , if we logon using french language we dont get the description. Though when we check the structu
-
Direct service calls in java-driven components
Hello all, I am new to WebCenter Content customization and have run into a problem I have trouble with solving correctly. Context I try to concentrate as much logic in ordinary java (and perhaps an ini or yaml file) and avoid the more unknown .hda an
-
I'm trying to delete specific pages in a pdf document but I get the message "bad parameters" on some of them (not all). What does that mean & how do I get past that to delete the page?
-
Is it legal to use iphone on airplane
I was recently on a South African airlines flight and the stewardess said it was illegal to use the iphone even in airplane mode. is this the case? if so, is Apple working with FAA and other authorities to resolve? if not, does Apple have some legal
-
Exchange 2013 I am trying to share a Room Resource Calendar on our Intranet. None of the samples I have found work. I have tried: https://tg50.redactedoup.com:90/owa/[email protected]/?exsvurl=1&cmd=contents&f=Calendar&view=Weekly https://tg50.redact