Order JDAPI and <; SOLVED >; block
Hi allI'm running on the following problem, while the migration of some forms of 6i to 10g with JDAPI: the old game of forms points reference for example blocks of a form that has been stored in the database. I'm changing the forms to reference the same elements of the form that is stored in the file system. The problem is that when I rereference a block (using the method block.setSubclassParent ()) the newly subclassed block is moved to the first position in the block list causing the form to behave unexpectedly.
The problem is easy to fix manually by opening the form in report designer and to move the block newly referenced at the end of the list, but I have a lot of modules to migrate so I was wondering if there is a way to do it using JDAPI? I tried to test the destroy() method, but do not appear to make much progress.
Any ideas?
Laurent
Published by: Laurent Warnett Sep 10, 2008 12:15
Of JDAPI Javadoc:
move
Public Sub move (JdapiObject next)
Rearranges an object with respect to its siblings in the collection it belongs. This is similar to by dragging and dropping in the form of movement of a block Builder in a list. This method is a way to do the same thing programmatically. By example, if you want a block appear immediately before Block5 in a list, you pass the object representing Block5 nextObject argument.
Pass NULL to this method to move the object to the end of the list. If the specified object and the next_object do not share the same owner, or do not have the same type, the method throws an exception.
You cannot use this method to move objects between the parents. For example, it cannot be used to move an element from one block to the next. If you want to move an object from one parent to the other, you will have to do something like:
.. and so on...
Specified by:
move through the JdapiObject interface
Parameters:
nextObject - the object that the object specified must be moved.
Throws:
JdapiException - if you try to move an object next to an object that does not share the same owner or not is not the samme type.
So it would be:
FormModule Test = FormModule.open("c:\test.fmb");
JdapiIterator lBlocksIterator = Test.getBlocks();
while(lBlocksIterator.hasNext())
{
Block lCurrBlock = (Block) lBlocksIterator.next();
if(some_cirteria)
lCurrBlock.move(null); //move it to the last position
}
I have not try, but give it a go...
Tags: Oracle Development
Similar Questions
-
When I start my system the output display poster always your computer have Persist modula order check and solve the Problem.How to solve this problem
Permanently?Hello
What operating system is installed on the computer?
Update video drivers and see if the problem persists.
http://Windows.Microsoft.com/en-us/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly
http://Windows.Microsoft.com/en-us/Windows-Vista/update-a-driver-for-hardware-that-isn ' t-work correctlyNote: install the drivers on the manufacturer's Web site
Hope this information helps. -
I've recently updated to CC 2015.2.1 but is still worse than Programstart 2.0 is normal, but after the forst in a few clicks it freezes and blocks. And what Adobe application support is worthless! They expect their customers to search, study and solve their problems themselves instead of giving true and good customer. The availability of their telephone support is a bad joke and there is no telephone assistance service, that I could write my problem... Is this the way to treat customers who actually pay a lot of money for the product?
I suggest you to please back in Lightroom 2015.1.1 and please wait for a new update which should fix most of the issues.
Rear roller Article: Instructions to restore an earlier version of update -
I updated Firefox to 33.1 as a conscientious Firefox user. Since then, I couldn't use Firefox successfully. It attempts to open a page and immediately blocked. Cannot access any Mozilla support via Firefox. I uninstalled Firefox and Firefox redownloaded several times to try to resolve the problem. I always send the crash report, but it seems to do nothing to solve the problem.
You can also try to upgrade to firefox beta 34, which already contains a fix for this crash related to fbplugin: https://www.mozilla.org/firefox/beta/
-
Hanging test page to the wrong port (LPT1) and tail blocks to HP C4200 w/USB connect... don't delete.__How cancel? Pls help. TKS Ron Moore
Ideas page: hanging in wrongly Test prt (LPT1) and tail blocks to HP C4280 w/USB connect... will not erase.
How to cancel? Pls help. TKS, Ron Moore
Hi Ron,
1. how many printers is connected to the computer?
2. did you of recent changes on the computer?
3. what happens when you try to change printer (LPT1) port
Method 1
See the link below and run them the fixit tool available, check if it helps.
Problems printing and printing errors
http://support.Microsoft.com/mats/printing_problems/en-us?EntryPoint=lightbox
Method 2
If the previous step fails, then I suggest that you restart the computer the print spooler service and check if it works.
A print spooler is a system service that temporarily stores the disk printing hard or in memory until the printer is ready to print.
To change or restart the print spooler service
You must be logged on as administrator to perform these steps.
(a) open administrative tools by clicking the Start button, click Control Panel, clicking system and Maintenance, and then clicking Administrative Tools.
(b) double click Services. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
(c) right click on the print spooler service, and then click Properties.
(d) under the tab general , next to Startup type, make sure thatAutomatic is selected.
(e) if the service is not already running, under Service status, click pie Sand then clickOK. If you are prompted for an administrator password or a confirmation, type the password or provide confirmation.
Solve printer problems
http://Windows.Microsoft.com/en-us/Windows-Vista/troubleshoot-printer-problems
I hope this helps!
Halima S - Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
How to run four procedures, in order, by using anonymous block
Hello
I am trying to run four procedures, in order, by using anonymous block. If one of the procedure fails remaining should get executed. How can I achieve this?
For example:
BEGIN
PROC1;
Proc2; -Suppose that Proc2 will fail, it should not affect the execution of Proc3 and proc 4
Proc3;
Proc 4;
END;Thank you!
Hello
Maybe this can help you:
BEGIN begin Proc1; exception when others then dbms_output.put_line('proc1 ' || sqlcode || ' ' || sqlerrm); end; begin Proc2; exception when others then dbms_output.put_line('proc2 ' || sqlcode || ' ' || sqlerrm); end; begin Proc3; exception when others then dbms_output.put_line('proc3 ' || sqlcode || ' ' || sqlerrm); end; begin Proc4; exception when others then dbms_output.put_line('proc4 ' || sqlcode || ' ' || sqlerrm); end; END;
In your case, it may be useful if your procedures have their own exception handlers, so they never fail. But then you need a sort of exception information that is displayed.
concerning
Kay -
I bought a LR 6 update. I received the order number and the serial number by email from Digital River. However when I try to activate the product I get a message error "we cannot validate this serial number.
Hi avijitm,
You are using a Mac or Windows computer?
Make sure there is no hosts blocking Lightroom entry onto the Adobe servers.
Follow solution 3 referred to in article Solutions to connect, activation and errors in connection with creative cloud and Creative Suite applications
See Error failed to validate the serial number | CS6
Let us know if that helps.
Kind regards
Assani
-
How to create a relationship between a Bock DB and not block DB
Hi all
I work with form of oracle 10g.
I created a custom form. I have two blocks. One is a DB block and another block of control (that is to say multi record blk).
I tried to create a relationship master detail between these two blocks.
The Master block: LC_Master_BLK (DB Block).
Detail block: LC_Detail_blk (no DB Block).
Form object browser I click on the link in the block of master and a pop-up window opens and form there I select details of the block.
And I give the join as condition
LC_Master_BLK. PO_HEADER_ID = LC_Detail_blk. PO_HEADER_ID.
I did po_header_id as primary key in my custom table, refred in my main block.
But it shows the error
FRM-15004: error while parsing the condtion of join.
Can someone tell me how to solve this problem.
Thanks and greetings
SrikkanthName of query data Source The block property is required to establish a relationship between the two blocs.
Without that you cannot set up a relationship between the two blocs.In any case
If you get has managed to implement a relationship b/w blocks providing the Query data Source name property value.
You can't enjoy with this relationship
because
No detail block must store data (as it is a block Non-DB)
Nor will it extract data from DB.Hope you understand this now.
-
find and delete blocks of text with the same geometricBounds
Hi writer... .new question from here:
mySelection var = app.activeDocument.selection [0] .geometricBounds;
alert (mySelection);
throughout the document, I need search and delete blocks of text with the same geometricBounds.
If possible, the same dimensions, but not the same positions.
Thanks for the help!
OK Bala... .in to decimal differences, some executives have not been removed.
I solved with "Math.round' instead of 'number '.
===================
mySelection var = app.activeDocument.selection [0] .geometricBounds;
var myWidth = Math.round(mySelection[3]-mySelection[1]);
var myHeight = Math.round(mySelection[2]-mySelection[0]); Alert (myHeight);
var allFrames = app.activeDocument.allPageItems;
While (t = allFrames.pop ()) {}
{if (t.IsValid)}
var myTextframe = t.geometricBounds;
var myTWidth = Math.round(myTextframe[3]-myTextframe[1]);
var myTHeight = Math.round(myTextframe[2]-myTextframe[0]);
If ((myWidth == myTWidth) & (myHeight == myTHeight)) {}
t.Remove ();
}
}
}
===================
Now, your script works great!
Thank you very much!
-
I can't find my order number and therefore cannot download my product again
I can't find my order number and therefore cannot download my product again. I have connected to MyAdobe with the e-mail address to which I was sent the confirmation of order (in 2010). I found "my orders and subscriptions, but it says that I have no old or new order. So, what should I do?
Thank you very much for the help of nay so I can solve this problem! (I wish there was a chat service that could help with this!)
Chances are you can download the demo version of the software using the link below and then use your current serial number to activate it.
Don't forget to follow the steps described in the Note: very important article Instructions on the pages to download on this site.
-
Since the loading of IOS10 my iphone 6 is acting funny and often blocks. I'm alone, or is it typical?
Looks like you have problems with your iPhone.
Have you tried to reset, restart or restore again?
-
If I block a caller, can I delete the number and still blocked it
If I block a caller, can I delete the number and still blocked it?
Yes. It is possible to block a contact and then delete the contact. They will be still blocked.
-
for windows update make me number error msg: 0 x 80240036 and solve this problem poblem with fixit get msg w xp sp3 rendered and nework Framework 2 or lator should be installed pls can help you
See your other thread the same. http://answers.Microsoft.com/en-us/Windows/Forum/windows_xp-windows_update/to-make-Windows-Update-am-getting-MSG-error-number/3f579859-ecb0-408D-9db3-804044a21fb7
-
Original title: prevention of security Windows opening attachments
I can't open attachments on emails sent to my email for Microsoft Outlook - it has recently started to happen. I tried to change the security settings in Outlook but they seem to be on the normal and the option to block potentially harmful messages is not checked. When attempting to open the attachments, I get the message that Windows found that this file is potentially harmful and has blocked access to this file. Any can you please suggest how to change it, it occurs on all email attachments, even those I know are safe of them have opened on another computer.
Thank you, Alistair.Hello
Sorry to hear that.
You use a browser to open emails or a customer e-mail like Outlook Express?
Respond with more information so that we can better help you.
-
With the help of windows Explorer XP does use CPU to go to 100% and the blocking of the system, forever, until closing by force. What can I do?
It is very difficult to manage my files.I suggest you download Process Explorer. This freeware utility performs a similar function to the Windows Task Manager, but it goes much further.
For more information about Process Explorer, see here:
http://www.Microsoft.com/technet/sysinternals/SystemInformation/ProcessExplorer.mspx
Explorer.exe is used by a number of applications. The posting process and see which element below uses explorer.exe.
Maybe you are looking for
-
the historic bar of deletion is not selected in the drop down menu
After you click on menu and then clicking on history, the historic bar of deletion is not selected and you can not click on it
-
Every time my laptop, Internet Explorer 8 starts displayed, how do I stop this?
How can I remove Internet Explorer 8 pop up? Every start of my laptop, Internet Explorer 8 is displayed. I want to remove it.
-
USB printer not recognized after Windows update
OT: usb device not recognized After that suddenly stop, reboot, done, the device is plugged in where the printer indicates that it does not recognize the device. I said abattissent unplug it and reconnect it and if it doesn't work me to replace... I
-
Cannot install Windows on disk 0 partition 1
Hi, I replaced my hard drive on my laptop, the new hard drive is empty and I want to install windows 7 on it, but I get the error windows cannot install on disk 0 partition 1, I can't format, install windows on it or anything.
-
Hi allDue to network constraints, we are not allowed to post videos mp4, and when we publish to PDF files are quite large and become resource hogs. In previous editions of Captivate we could publish on a FLV, but in 7 Captivate we can't find all the