10g Form - Can i invoke ms word within the from?

Hi everybody, I would appreciate if someone out there can help me with it......
On the form i have an ID Field.
I have a master MS Word file on the network drive.
Firstly
I have a button on the form. When pressed it should be able to create a New Folder on the network drive with the name of the folder same as ID Field. At the sametime it should copy the Master MS Word file and put it in the newly created folder.
Secondly
I want to open this Ms word file in the newly created folder within the 10g form and not run outside the form.
Kindly help........
irfi

Hi Francoise, Thank you for your reply.
The MS Word file resides on a shared folder on the server and doesnt get stored in the database (Independent of the database).
What i actually need is to be able to do 4 actions with a trigger on the button: meaning when the button is clicked it should:-
1- Create a new folder on the server
2- Copy the Original Master File to newly created folder.
3- The name of the folder to be the same as the ID Filed which is binded to a table.
4- To open the Ms Word file from the newly created folder within the oracle form and not like i have done in vb (Shell to open outside).
I have done this similar project in vb6 (Kindly have a look)
ServerFolderPath = "\\servername\foldername"
Private Sub Cmdsave_Click()
Dim Qry As String
Dim Re As New Recordset
Qry = "select * From IDRegistration where IDNo = '" & TxtIDNo.Text & "'" '(SQL Table)
If EditID = False Then
Re.Open Qry, DB, adOpenDynamic, adLockOptimistic
If Re.RecordCount > 0 Then
MsgBox "File with same ID Exists", vbInformation
Else
fso.CreateFolder ServerFolderPath & IDNo
fso.CopyFile ServerFolderPath & "one.doc", ServerFolderPath & IDNo & "\" & IDNo & ".Doc" '(one.doc is the master file)
Shell "c:\Program Files\Microsoft Office\Office11\winword.exe " & ServerFolderPath & IDNo & "\" & IDNo & ".doc", vbMaximizedFocus
End If
Please advice Thanks for your time!
irfi

Similar Messages

  • Can i use chinese words in the iphoto ?

    can i use chinese words in the iphoto ?

    Yes.  The usual Chinese keyboard can be accessed from within iPhoto.

  • Cannot invoke method "setMessageListener" within the J2EE container.

    I use TopicSubscriber.setMessageListener method to convert messages to my own type, but oc4j jms throws following exception:
    javax.jms.JMSException: TopicSubscriber[Oc4jJMS.Consumer.ypchang-cn.12da4a6:111d4f12137:-8000.94,Topic[CreatedSponsorTopic],null,null,false]: cannot invoke method "setMessageListener" within the J2EE container.
         at com.evermind.server.jms.JMSUtils.make(JMSUtils.java:1072)
         at com.evermind.server.jms.JMSUtils.toJMSException(JMSUtils.java:1152)
         at com.evermind.server.jms.JMSUtils.toJMSException(JMSUtils.java:1123)
         at com.evermind.server.jms.JMSUtils.assertNotContainer(JMSUtils.java:1538)
         at com.evermind.server.jms.EvermindMessageConsumer.setMessageListener(EvermindMessageConsumer.java:217)
         at com.firepond.bcmf.bus.BusSubscriberImpl.setMessageListener(BusSubscriberImpl.java:397)
    OC4J JMS doesn't support user defined MessageListener?????!!!!!!!!!!
    Who can help me out?
    Thanks!

    Hi,
    I am facing the same problem did you got any solution for it.
    I am getting the following error message too:
    Exception in Constructor
    javax.jms.JMSException: QueueReceiver[Oc4jJMS.Consumer.ssipl-wrkst-139.-7dd2dd24:1122873d95f:-8000.269,Queue[360Transaction]]: cannot invoke method "setMessageListener" within the J2EE container.
         at com.evermind.server.jms.JMSUtils.make(JMSUtils.java:1072)
         at com.evermind.server.jms.JMSUtils.toJMSException(JMSUtils.java:1152)
         at com.evermind.server.jms.JMSUtils.toJMSException(JMSUtils.java:1123)
         at com.evermind.server.jms.JMSUtils.assertNotContainer(JMSUtils.java:1538)
         at com.evermind.server.jms.EvermindMessageConsumer.setMessageListener(EvermindMessageConsumer.java:217)
         at com.skillnetinc.storehub.connector.pos.publisher.ejb.publishTransactionWithSalesAudit.PublishTransactionWithSalesAuditBean.<init>(PublishTransactionWithSalesAuditBean.java:94)
         at PublishTransactionWithSalesAuditBean_RemoteProxy_1dpbn83.OC4J_createBeanInstance(Unknown Source)
         at com.evermind.server.ejb.StatelessSessionBeanPool.createContextImpl(StatelessSessionBeanPool.java:37)
         at com.evermind.server.ejb.BeanPool.createContext(BeanPool.java:418)
         at com.evermind.server.ejb.BeanPool.allocateContext(BeanPool.java:244)
         at com.evermind.server.ejb.StatelessSessionEJBHome.getContextInstance(StatelessSessionEJBHome.java:25)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:86)
         at PublishTransactionWithSalesAuditBean_RemoteProxy_1dpbn83.invoke(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)

  • How can I add a word to the dictionary?

    How can I add a word to the dictionary on my iPhone 6 plus?
    Thanks.

    There's not an option to add a word to the dictionary. However, after typing that word several times, it will start to recognize it and offer it as a suggested word.

  • Can i put Microsoft word onto the ipad, if so how can you save the documents, can i put Microsoft word onto the ipad, if so how can you save the documents

    can i put Microsoft word onto the ipad, if so how can you save the documents, can i put Microsoft word onto the ipad, if so how can you save the documents

    Welcome to Apple Support Communities
    If you have Office 365, you can install Office in your iPad > https://itunes.apple.com/us/app/suscriptores-office-mobile/id541164041?mt=8
    If you haven't got Office 365, there are other apps that work with Microsoft Word files, like Documents To Go > http://www.dataviz.com/dtg_home.html

  • I removed chrome 10 and newly installed FF4 final, and I can't read PDF files within the browser. There was no problem in Chrome.

    I removed chrome 10 and newly installed FF4 final, and I can't read PDF files within the browser. There was no problem in Chrome. I can't even see the acrobat reader plugin in the plugins page. Acrobat 10 is already installed in my PC. Every time I try to read a PDF file on the web, FF tries to download it instead.

    As recommended above by Bernd Alheit, I posted this on the Adobe Reader forum. There, I received the advice to repair the installation under the help menu, which I did and it fixed the problem.
    Similar to your solution but found it's a fix found under "HELP" menu and not Add/Remove.
    Thank you.

  • I am not able to type anything in the address bar or click on any menu options with the browswer. The whole browser is just stuck, I cant do anything in it. It loads up fine but nothing can be done at all within the broswer.

    I am not able to type anything in the address bar or click on any menu options with the browswer. The whole browser is just stuck, I cant do anything in it. It loads up fine but nothing can be done at all within the broswer.

    Hi,
    ( I search for iChat questions when I have finished in the iChat Forum)
    So the menu bar reads iChat, File,  Edit,  View, Buddies, Video, Window and Help
    There is no Buddy List open.
    There is no other window for iChat open.
    In the iChat Menu you only have access to Status.
    Is an item ticked in the list ?
    Is this a green (Available item) or  Red ( an Away one) ?
    Can you access the Accounts option ?  (Sitll in the iChat Menu)
    Is anything in here ticked ?
    In the Window menu any Logged in account should appear in the list  (Between the Next Chat and File Transfer items)
    It would be useful to know which version of iChat this is.
    If no account is ticked (iChat Menu > Accounts) or not showing in the Window Menu, plus you cannot determine the Status and you cannot access the Preferences then you need to access your Home Folder/Library/Preferences
    As the Library in the Home Holder is Invisible in Lion you will need the Finder's Go Menu > Go to Folder option  (you can use it in earlier OS versions if you want)
    Type in:-
    ~/Library/Preferences
    Find the file called com.apple.ichat.plist
    Drag it to the Trash and Restart iChat.
    This will lose all the settings in iChat that you have changed from Defaults but there is no way around this.
    9:23 PM      Saturday; August 27, 2011
    Please, if posting Logs, do not post any Log info after the line "Binary Images for iChat"
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.8)
     Mac OS X (10.6.8),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Can we invoke a asynchronous BPEL process from synchronous and vice versa

    Hi,
    Can we invoke a BPEL asynchronous process from synchronous and vice versa. If so how to perform that.
    thanks,
    Vijay

    Yes you can
    sync -- calling --> Asyncc
    Async -- calling --> syncc
    Perfomance is no issue, depending on your requirements. Not the Syncprocesses are short-running processes, these will time-out after 30 seconds, if no answer is coming from the async process.
    Marc
    http://orasoa.blogspot.com

  • 10G-form: How to do MULTIPLE WORD OR SINGLE WORD SEARCH at ITEM?

    I am using 10G DB + 10G Form Builder.
    I've 'database_item' where I am storing multiline text data.
    I want to do MULTIPLE WORD OR SINGLE WORD SEARCH at this item through FORM.
    I've tried by creating the following NON Database Items on the form:
    - multiline_search_text_item, and
    - multiline_result__text_item
    And then writing execute_query in KEY-NEXT-ITEM trigger.
    I've also tried using this in the POST-TEXT-ITEM at multiline_search_text_item:
    select table.database_item into :multiline_result__text_item from table where multiline_search_text_item = :multiline_search_text_item;
    Pl help me asap.
    Gaurav

    What you want to do is not clear.
    The query you wrote will select records where the table contains exactly what has been written in the search item. You can use LIKE and a wildcard search to find records which contain the search text:
    select table.database_item into :multiline_result__text_item
    from table
    where multiline_search_text_item LIKE '%'||:multiline_search_text_item||'%';
    You can use UPPER to make this case insensitive:
    select table.database_item into :multiline_result__text_item
    from table
    where Upper(multiline_search_text_item) LIKE Upper('%'||:multiline_search_text_item||'%');
    But I suspect you want either to match the individual words in the search text to individual words in the database multiline field, or find records where the search words appear (not necessarily as whole words). In that case, check out the following:
    -- set up a table (multiline and various whitespaces)
    DROP TABLE t;
    CREATE TABLE t AS
    SELECT
      ROWNUM rn,
      owner||Chr(9)||object_name||Chr(160)||subobject_name||'    '||object_id||' '||
      data_object_id||Chr(10)||object_type||' '||created||' '||last_ddl_time||' '||
      timestamp||' '||status||' '||temporary||' '||generated||' '||secondary AS col
    FROM all_objects;
    -- check the format of the multiline text item (col)
    SELECT * FROM t WHERE ROWNUM < 4;
    -- a type for the function below
    CREATE TYPE string_tab AS TABLE OF VARCHAR2(255);
    -- this function takes a string and cuts out each word, idetifying words
    -- as being separated by any whitespace.  it returns a collection
    CREATE OR REPLACE FUNCTION string_to_tab(
      p_string IN VARCHAR2) RETURN string_tab IS
      l_string LONG DEFAULT
        RTrim(regexp_replace(p_string,'[[:space:]]+',' ')) || ' ';
      l_data string_tab := string_tab();
      n NUMBER;
    BEGIN
      LOOP
        EXIT WHEN l_string IS NULL;
        n := InStr(l_string, ' ');
        l_data.extend;
        l_data(l_data.Count) := LTrim(RTrim(SubStr(l_string, 1, n - 1)));
        l_string := SubStr(l_string, n + 1);
      END LOOP;
      RETURN l_data;
    END string_to_tab;
    -- selecting from t where ANY of the words in the search text has
    -- a match in the multiline field (as a word or part of a word), so SYS
    -- matches to MDSYS and SYSTEM
    SELECT DISTINCT
      t.rn, t.col
    FROM
      t,
      (SELECT column_value
       FROM TABLE(CAST(string_to_tab('SYS   INDEX') AS string_tab))) x
    WHERE InStr(t.col,x.column_value) > 0;
    -- selecting from t where ALL of the words in the search text has
    -- a match in the multiline field (as a word or part of a word), so SYS
    -- matches to MDSYS and SYSTEM
    SELECT rn, col FROM(
    SELECT
      t.rn, t.col, cnt_x, Count(*) cnt
    FROM
      t,
      (SELECT column_value , Count(1) over(PARTITION BY 1)cnt_x
       FROM TABLE(CAST(string_to_tab('SYS   INDEX') AS string_tab))) x
    WHERE InStr(t.col,x.column_value) > 0
    GROUP BY t.rn, t.col, cnt_x
    WHERE cnt = cnt_x;
    -- selecting from t where ANY of the words in the search text
    -- match a word in the multiline field, so SYS matches only to SYS
    SELECT DISTINCT
      t.rn, t.col
    FROM
      t,
      (TABLE(CAST(string_to_tab(t.col) AS string_tab))) t2,
      (SELECT column_value
       FROM TABLE(CAST(string_to_tab('SYS   INDEX') AS string_tab))) x
    WHERE t2.column_value = x.column_value;
    -- selecting from t where ALL of the words in the search text
    -- match a word in the multiline field, so SYS matches only to SYS
    SELECT rn, col FROM(
    SELECT
      t.rn, t.col, cnt_x, Count(*) cnt
    FROM
      t,
      (TABLE(CAST(string_to_tab(t.col) AS string_tab))) t2,
      (SELECT column_value , Count(1) over(PARTITION BY 1)cnt_x
       FROM TABLE(CAST(string_to_tab('SYS   INDEX') AS string_tab))) x
    WHERE t2.column_value = x.column_value
    GROUP BY t.rn, t.col, cnt_x
    WHERE cnt = cnt_x;For your application you would replace 'SYS INDEX' with a variable (the search field). You can use upper() and wildcards for case insensitive & 'fuzzy' searches. You might need to modify the function so it removes other delimiters such as commas and colons.

  • 10G-Form: How to add Email-id to the To: field in the Outlook?

    I am using 10G DB + 10G Form Builder.
    I've 'email_item' field in table where I am storing email-ids.
    I m displaying 'email_item' field and 'Send_Email_button' in the form.
    I want to add (copy) the exact email-id that has been displayed on the form to the To: field in the Outlook.
    Means whatever Email got displayed in the 'email_item' field, I want to add this Email automatically.
    I do not want to type manually the email-id of the person in the To: field of the Outlook like I am using rt. now as:
    WHEN-BUTTON-PRESSED trigger code=
    WEB.SHOW_DOCUMENT ('mailto:hard_coded_value_of_email?subject=Testing%20Email: &body=Please%20check............');
    Pl help me.
    Gaurav

    Hi,
    For getting the email ID you can write a java code using the Iuser Interface. Have look to the following:
    public class UseremailID extends AbstractPortalComponent
    public void doContent(
    IPortalComponentRequest request,
    IPortalComponentResponse response)
    try
    IUserFactory userfactory = UMFactory.getUserFactory();
    IUserSearchFilter userfltr = userfactory.getUserSearchFilter();
    userfltr.setMaxSearchResultSize(5000);
    ISearchResult userResult = userfactory.searchUsers(userfltr);
    while (userResult.hasNext())
    response.write("<table border=0>\n");
    String uniqueid = (String) userResult.next();
    IUser user = userfactory.getUser(uniqueid);
    //IRole role = rolefactory.getRole(uniqueid);
    response.write("<tr><td bgcolor=Red>"+ user.getDisplayName()+ "</td></tr>\n");
    response.write("<tr><td bgcolor=Green>"+ user.getEmail()+ "</td></tr>\n");
    response.write("</table>\n");
    response.write("
    \n");
    catch (Exception e)
    for analyzing the error you just need to check the log file at your server. Visit the following path:
    <Your_SAP_Drive> :/usr/sap/<your_System_Name>/jc00/j2ee/cluster/server0/log/
    There you can view the .trc file. Open that file and look for the error or the Stack trace in that.
    i think it may help you

  • How can i use connection pool within the sqlj?

    hello
    i am a beginner to sqlj,i find all of the sample code from the oracle DON'T use connectionpool,they only write the database url to "connection.properties" file,but i think in the production environment we should use the connectionpool to optimise the querying,i usually use the weblogic connection pool.
    how can i use the connection pool within the sqlj?
    thank you very much!

    Im not sure if I understand. :)
    English is not my best language...
    Looking up the connection again? Do you mean I have to create new DataSource object and bind it again to ServletContext?

  • Can I get Microsoft Word on the Mac App Store?

    I am most likely going to buy a new MacBook Pro with Retina Display 13 inch model and I keep wondering if I can get Microsoft Word on the Mac App Store or if I have to buy it in a separate package. If anyone could answer this that would he great. :)

    It is not available in the Mac App Store. You would have to buy it from a retailer or from here: Buy now

  • Since installing Firefox 8 beta, can't move tabs around within the tab bar; can this be fixed without reverting to earlier version? Thank you.

    Before moving to Firefox 8, I could drag and drop tabs within the tab bar to reorder them, which was very convenient. Since installing the first beta of Firefox 8, the tabs don't move. Should I revert to an earlier version of Firefox? If so, which one? Thank you for any help with may favorite browser. Tom

    Tor Button addon was the cause in my case.

  • Syntax within the from Clause

    In the following SQL SELECT statement, what does the
    px-granule(0, block_range, dynamic) in the FROM clause reference.
    This select statement was copied from the sql analyze tool within
    OEM 2.2.
    SELECT /*+ Q524000 NO_EXPAND ROWID(A1) */ A1."PROCESSING_DATE"
    C0,
    A1."PRCSNG_SEQUENCE_NR_IDENTIFIER" C1,
    A1."TUI_ID" C2,NVL(A1."RECORD_TYPE_CODE",' ') C3,
    NVL(A1."CONDITION_CODE",' ') C4,
    NVL(A1."PURPOSE_CODE",' ') C5,
    NVL(A1."DOCUMENT_IDENTIFIER",' ') C6,
    NVL(A1."NIIN_IDENTIFIER",' ') C7,
    NVL(RTRIM(A1."DOCUMENT_NUMBER_IDENTIFIER"),' ') C8,
    NVL(A1."SUFFIX_CODE",' ') C9,
    NVL(A1."UNIT_OF_ISSUE_CODE",' ') C10,
    NVL(A1."PLUS_MINUS_CODE",' ') C11,
    NVL(A1."TRANSACTION_QUANTITY_CHAR_TEXT",' ') C12,
    NVL(A1."TRANSACTION_REVERSAL_CODE",' ') C13,
    NVL(A1."ON_HAND_QUANTITY_CHAR_TEXT",' ') C14,
    NVL(A1."SITE_CODE",' ') C15,
    A1."RECORD_TYPE_CODE" C16,
    NVL(TO_CHAR(TRUNC(A1."REPAIR_SEQUENCE_NR_IDENTIFIER")),' ') C17,
    NVL(A1."COGNIZANCE_SYMBOL",' ') C18,
    NVL(A1."FSC_CODE",' ') C19
    FROM "OPS$DWTLOD"."TLOD_UNION_ITEMS" PX_GRANULE(0, BLOCK_RANGE,
    DYNAMIC) A1
    WHERE A1."REGION_IDENTIFIER_CODE"=5 AND
    A1."PROCESSING_DATE"<=:B1 AND
    NVL(A1."NIIN_IDENTIFIER",' ') LIKE '000457162' AND
    NVL(RTRIM(A1."DOCUMENT_NUMBER_IDENTIFIER"),' ') LIKE '%'
    AND A1."PROCESSING_DATE">=:B2 AND A1."PROCESSING_DATE"<=:B3 AND
    NVL(A1."NIIN_IDENTIFIER",' ') LIKE '000457162' AND
    NVL(RTRIM(A1."DOCUMENT_NUMBER_IDENTIFIER"),' ') LIKE '%'
    Thanks,
    Gil

    DECLARE
           highestlid locations.location_id%TYPE;
    BEGIN
           SELECT
                max(location_id)
           INTO
                highestlid
           FROM
                locations;
           highestlid:=highestlid+1;
           ADDLOCATION(highestlid,'Lucan');
    END;
    /

  • 10g Forms can't run on windows 7

    Have developed forms in oracle 10g. And tried to running it on windows 7 64 bits. Using all browsers available to me. but yet the result is blank page. Any help please

    check to see if jinitiator is installed. Try removing / reinstalling.

Maybe you are looking for

  • Animating Pictures or Text Captions

    Hi Guys Is there any way of getting more animation of Text Captions or pictures, other than simply fading them in?  I know there is the option of setting up and using the 'Text Animations' but I find the text formatting options very limited.  Notwith

  • Cost error message at the point of saving a Process Order

    Dear Experts, Raw Materials R458 and R467 are processed to produce semifinished material S229 While creating a Process Order for material S229, at the point of saving the process order I get the following error messages: 1 No cost element segment exi

  • Opening up SQL Server Reporting Services in Internet Explorer

    Previously I had installed SQL Server 2012 Database Engine Services.  Now I am being asked to install Reporting Services - Native.  When I get to the Reporting Services Configuration the Reporting Services"Install and configure" is greyed out.  I can

  • Error Performance Scorecard 11.1.2.2 Login

    Hello; I have an error when entering the Performance Scorecard application with admin user exepcion which has no problems In workspace is logged good. At the moment of choice in Workspace Browse -> Applications -> Performance Scorecard see this error

  • X200 4500MHD Graphics Memory

    Is there anyway to increase the memory on the video card in the X200's 4500MHD graphics?  I tried looking for something in BIOS but I couldn't find anything.  According to device manager, it's only using 32MB.  I have 4GB so I'd like to allocate at l