[CS3] How to get the parent spread of a page?
Hallo!
I have the page UID.
How to get the spread of this page?
Thanks,
Alois Blaimer
You'll also need an IDataBase*, from any object in the same document.
Then you can follow IID_IHIERARCHY one up to the kSpreadLayerBoss, two up to the kSpreadBoss or just refer to the hierarchy root.
Dirk
Similar Messages
-
How to get the parent of a component in fx?
Here is an example:
Index.fx:
Stage {
title: "Online book library";
width: 1024
height: 768
scene:Scene {
fill: Color.WHITE
content: [
banner ,
login = Login{translateX:715 translateY:135}
};Login.fx:
var logOn : Button = Button {
translateX:25 translateY: 170
text: "Log On"
font: Font {size:11 name: "Verdana Bold"}
action: function() {
showHello();
function showHello(){
// add a label in index.fx whose text is "welcome!";
}I want to show something on the index.fx but I don't know how to get the parent from the child component?
In Flex, we use parent or parentApplication, Is there a similar function in JavaFX?Reusing the same Tile example, I had no problems, I suppose I was doing wrong the first time:
def IMAGES_WIDTH = 100;
def IMAGES_HEIGHT = 100;
var COLUMN_NB = 3;
var ROW_NB = 3;
var scene: Scene;
var previews: Container;
Stage
title: "Test of Tile layout"
scene: scene = Scene
width: 500
height: 500
fill: Color.LAVENDER
content:
previews = Tile
hgap: 10
vgap: 10
layoutX: bind (scene.width - previews.width) / 2
layoutY: bind (scene.height - previews.height) / 2
columns: COLUMN_NB
content: for (i in [ 1 .. COLUMN_NB * ROW_NB ])
ImageView
id: "IV{i}"
image: Image
url: "{__DIR__}clock.gif"
width: IMAGES_WIDTH
preserveRatio: true
onMousePressed: Hide
function Hide(evt: MouseEvent): Void
println("{evt.node} ({evt.node.id}) - {evt.node.parent}");
var nm: Node = evt.node.parent.lookup("IV5"); // Middle node
nm.visible = false;
var ntl: Node = evt.node.parent.lookup("IV1"); //Top left node
(ntl as ImageView).viewport = Rectangle2D { height: IMAGES_WIDTH/2, width: IMAGES_WIDTH/2 };
(evt.node.parent as Tile).hgap = 20; // Strange effect, but works
} -
How to get the parent window in sub-child controller class in javafx?
how to get the parent window in sub-child controller class in javafx?
You can get the window in which a node is contained with
Window window = node.getScene().getWindow();Depending when this is invoked, you might want to check the Scene is not null before calling getWindow().
If the window is a stage that is owned by another window, you can get the "parent" or "owner" window with
Window owner = null ;
if (window instanceof Stage) {
Stage stage = (Stage) window ;
owner = stage.getOwner();
} -
How to get the parent Frame of a component ?
Hi,
I'm wondering how to get the parent JFrame (or JDialog) of a component.
Thanks for tipsI'm using this code:
public Component getFrame(Component comp)
Component frame = comp;
while ((frame != null) && !(frame instanceof Frame))
frame = frame.getParent();
if (frame == null)
frame = comp; // no parent found
return frame;
} -
How to get the form reference in .js page from .jsp page
hi
i have written one form in jsp page omething like:-
<html:form action="/shopping" onsubmit="return false;">
can anybody tell me,how to get the form reference in .js page from .jsp page ,
i have tried:-
var formRef = document.forms[0];
butits not working.
Thanks.Its very simple......y cant u prefer google...Bad
c this example...
function submit()
alert("textbox"+ document.forms[0].name.value);//to get textbox value in js
document.forms[0].submit();//to submit jsp page using js
<html:html>
<html:form action="/shopping" onsubmit="submit()">
<html:text property=name>
learn to search in google..
</html:form>
</html:html> -
How to get the parent node of the current node?
Hi all,
i want to get the parent node of the current node and the not the parent of the parent node.
thank you very muchHi,
the parent node of <subnode1-2>29.99</subnode1-2> is (node1), how can do to get <node1> throw <subnode1-2>29.99</subnode1-2> the sub node of <node1>.
As per my understanding the parent node of <subnode1-2>29.99</subnode1-2> is book not the node1.
If you want node 1 as a parent of subnode1-2 than your xml will look like this.
<?xml version="1.0" encoding="ISO-8859-1"?>
<bookstore>
<book>
<fathernode>Harry Potter</fathernode>
<node1>
<subnode1>29.99</subnode1>
<subnode2>29.99</subnode2>
</node1>
<node2>
<subnode1>19.99</subnode1>
<subnode2>19.99</subnode2>
</node2>
</book>
</bookstore>
and also if you want tom retrive float data than refer following XPATH.
"//book[[price='1000']]/price/text()"
Regards,
Manoj Bilthare -
Indesign CS3: How to get the number of the current layer?
Hallo!
How to get the number of the current layer in a page?
Thanks,
Alois BlaimerInterfacePtr<ILayerList> layerList(documentUIDRef, UseDefaultIID()); <br /><br />int32 layerCount = layerList->GetCount();<br /><br />To findout layer name use<br /><br />IDocumentLayer* documentLayer = layerList->QueryLayer(layerIndex);<br /> <br />PMString layer=documentLayer->GetName();
-
How to Get the Parent - Child Relationship
Hi ,
In my application having 100 tables with parent - child releation ship without using casecade constraints
i want to delete the parent with child and sub child records
Example
Table - 1
parent1
child 2
Table - 2
Child 1 - Parent 1
Parent 2
Table - 3
Child 1 - Parent 2
Parent 3
Table - 4
Child 1 - Parent 3
How to delete the parent table ? Is it any scripts available ?
Regards
Sudhakar P.Hi,
1) Firstly identify the parent tables using
SELECT a.table_name, 0
FROM user_tables a, user_tab_columns b
WHERE a.table_name = b.table_name
store these in one table say ID_table
2) Identify dependent tables and sore in table say table_dependency using
SELECT LEVEL, parenttable, parentcol, childtable, childcol
FROM (SELECT UNIQUE parenttable, parentcol, childtable,
b.column_name childcol
FROM (SELECT p.table_name parenttable,
k.column_name parentcol,
k.POSITION pos,
c.table_name childtable,
c.constraint_name CONSTRAINT
FROM all_constraints p,
all_constraints c,
all_cons_columns k
WHERE p.constraint_name =
c.r_constraint_name
AND c.r_constraint_name =
k.constraint_name
AND p.constraint_type IN ('P', 'U')
AND c.constraint_type = 'R'
AND p.table_name != c.table_name
ORDER BY p.table_name,
c.constraint_name,
k.POSITION) a,
all_cons_columns b
WHERE a.CONSTRAINT = b.constraint_name
AND a.pos = b.POSITION)
3)Now using these details find tables without cascade rule as below
SELECT *
FROM table_dependency
WHERE child_table IN (
SELECT DISTINCT table_name
FROM user_constraints
WHERE constraint_type = 'R'
AND delete_rule <> 'CASCADE'
AND table_name IN (SELECT child_table
FROM table_dependency)
AND r_constraint_name IN (
SELECT constraint_name
FROM user_constraints
WHERE table_name IN (
SELECT table_name
FROM id_table
UNION
SELECT child_table
FROM table_dependency))
AND table_name NOT IN (
SELECT table_name
FROM id_table)); -
How to Get the Parent Process ID from Child BPEL Process
Hi All,
We have a requirement to get the Parent BPEL Process ID from Child BPEL Process. One way is we can pass the Parent BPEL process ID from Parent BPEL Process to Child BPEL process. Is there any standard function available to get the Parent BPEL process ID from Child Process?
P.S: We are using BPEL 10.1.3 Version.
Please share any info on this.
Thanks in Advance,
SaravanaHi Saravana,
The existing methods in 10.1.3x allow a following (a bit of a convoluted way):
In a BPEL Java embedding activity, you can use the following code to get the parentProcessname:
String parentInstanceId = getParentId();
String parentProcessname = getLocator().locator.lookupInstance(parentInstanceId).getProcess().getProcessId().getProcessId();Hope this helps,
Regards,
Shanmu
http://www.prshanmu.com/articles/ -
How to get the class name of a page in oracle apex
Hi All,
Can anyone please let me know how we can get the class name of a page or region in oracle apex? I would also like to know how we get the DOM object ID for particular item.
I appreciate any help on this.
Regards
RajRajEndiran wrote:
Can anyone please let me know how we can get the class name of a page or region in oracle apex?What do you mean with class name? The name of the template (e.g. the css style class name)?
I would also like to know how we get the DOM object ID for particular item.Use firebug or inspect the source code of the rendered page to see the object IDs. Other then then, the typical ID of page items is the name of the item. For regions you can set your own ID. -
How to get the guid of currently opened page programatically
Hi,
Can any one of you please let me know how to get the guid of a page at database level which is opened currently?
The requirement is I need to grab the url of a page which is currently opened by the user.
Is there any way to get it from accessing the tables like wwv_things or wwpob_page$.
Please suggest me how to get it.
Thanks,
Ravi.Hi Ravi,
You may wanna explore the two API's (wwsbr_all_folders and wwsbr_all_items) and make a bridge to get the name of the portlets that appear on the page.
something of the following nature should be enough to take you where you want to go. here c.name is the GUID of the item you are looking for.
SELECT DISTINCT c.display_name,c.name,c.updatedate
FROM portal.wwsbr_all_folders a, portal.wwsbr_all_items c
WHERE a.LANGUAGE = 'us'
AND a.id = c.folder_id
AND a.caid = c.caid
AND c.itemtype = 'baseportletinstance'
AND a.Name LIKE 'MY_PAGE_NAME'
order by 3 desc
this will work in the portal but not in the sqlplus or any querying tool. for that purpose, it will work once you establish the context of user.
hope that helps!
AMN -
How to get the initial state of JSF PAGE IN ORACLE ADF
Hi everybody
my Jdeveloper version is 12.1.3
I'm building my JSF pages based on a template that has a navigation pane which contains command navigation items , every one of them (command navigation items) appears as a link at runtime and calls a JSF page , I wish to get the initial state for any page when leaving it then entering such page again , and I would like to know what is the suitable place to write the code to do this task.
many thanks !Clear the cache by adding the following to each jsf page.
<%
response.setHeader("Cache-Control","no-cache");
response.setHeader("Pragma","no-cache");
%> -
Need how to get the parent acount details in Trial balance report
Hi All,
I have a requirement in which i need to print the details of the parent account details as the report wont print the parent a/c details by default.
Can any one please let me know how can i achieve this?
Thax in advance.
SeshuGenerally the trial balance summary report does not fetch the parent account details.
In my customized report , i need to get the detials of the current accounts as well as the details (initial balance,debit,credit ) for a particular period of the parent account as well. -
How to get the parent name in the hierarchy
Hi Colleagues.
Im working on with java webdynpro by showing hierarchical data.
When I select a leaf item, I should get the possible parent items.
For Ex:
A
B
C
|
D
When I select D, I need to get the information as A-B-C-D.
How can I acheive this?
Thanks
RakeshHi Rakesh
You can go up to the root using the following methods:
IDNode dNode = dElement.node();
IWDNodeElement cElement = dNode.getParentElement();
IWDNodeElement bElement = cElement.node().getParentElement();
BR, Siarhei -
Indesign CS3: How to get the UID of the selected object?
Hello,
How can I get the UID of the selected object in an document?
Thanks,
Alois BlaimerHello!
I do not get it. Please give me some more hints.
I only want to know if the selected object is a square and then the UID of the selected square.
Thanks,
Alois Blaimer
Maybe you are looking for
-
I am using 3.6.15 and tried version 4 to no avail.
-
I used to use Yahoo Calendar to manage my birthdays and notifications of them. Yahoo screwed with something, so now I no longer get birthday notification texts to my cell. Now, I've imported my Yahoo Calendar dates in to iCal. iCal has a Birthdays "s
-
Signed applet does not grant AudioPermission "record"
From what I gather, if I have a trusted signed applet sitting on a webpage and the visitor accepts (runs) the applet, then they should not need to have: grant { permission javax.sound.sampled.AudioPermission "record"; in their java policy file. Well
-
Router web page not showing correctly
I use WRT54G wireless router. When trying to change options on my router, I go to 192.168.1.1 in a browser and put in my password. When the site opens, it resembles what it is supposed to look like but is kind of messed up. Here is a picture of what
-
Why this behaviour 32/64 bits installer jdk/jre behaviour
Dear members usally i work with jdk 1.5 update 12 so in this link http://java.sun.com/products/archive/j2se/5.0_12/index.html for my 32 bits pc machine i download this file Windows Platform - Java Development Kit 5.0 Update 12 Windows Offline Install