App.Select Group problem

I'm having a problem with the selection of groups in a script: when I use app.select it selects the COMPONENTS of the group, not the group itself.

myGroup =]

myGroup.push (obj1);

myGroup.push (obj2);

currentPage.groups.add (myGroup);

who creates the group.

App.Select (myGroup)

does NOT select the group - instead, I select obj1 and obj2

(I want to make the Group an object anchor, so I need to PointInsertion select, select, cut, paste - but you can not stick 2 objects selected...)

Does anyone now what's the problem?

Thank you

myGroup =]

myGroup.push (obj1);

myGroup.push (obj2);

myInddGroup = currentPage.groups.add (myGroup);

App.Select (myInddGroup)

___edit__

Note that the use of things like copy() and paste() is quite a bad way to make a script.

Better would be something like:

myInddGroup.anchoredObjectSettings.insertAnchoredObject (PointInsertion, AnchorPosition.INLINE_POSITION);

Tags: InDesign

Similar Questions

  • Select Group with label

    Hi, I try to choose the Group on the page

    var doc = app.activeDocument;

    var myModul = doc.groups.item ("media");

    var myModul = doc.groups [0];

    $.writeln ("ID:" + myModul.id);

    $.writeln ("manufacturer:" + myModul.constructor.name);

    $.writeln ("type:" + typeof (myModul));

    App.Select (myModul);

    Why it does not work ?

    Try the code below

    var doc = app.activeDocument;

    var doc.pages = myPage

    var myModul = doc.groups.item ("media");

    for (var i = 0;  myPage.length > i; i ++) {}

    var allItems = myPage [i] .allPageItems

    for (var j = 0; j)<>

    {

    var myGroup = allItems [j];

    If (myGroup.label == "modul") {}

    $.writeln ("manufacturer:" + myGroup.constructor.name);

    App.Select (myGroup);

    }

    }

    }

  • I want to move a large number of photos but don't want to unique, click each photo. I know there is a simple control function that allows to select groups of files with ' two'clicks ', as opposed to the selection of each file. Suggestions?

    I want to spend a lot of photos (they are in order) but and do not want to have to click to move each photo. I know there is a simple control function that allows to select groups of files with ' two'clicks ', as opposed to the selection of each file. Suggestions? I know it's apple 101, but I don't remember what order to press the button command, or shift, or other. Thank you

    Select the first file, then hold down the SHIFT key, and then click the last file. Or, select any file in the folder and then press command + A

  • Spooler subsystem app has a problem and needs to close and... .instructions @ 0x0041003d referenced memory @ 0x0041003d memory could not be read.

    I have windows xp svc pack 3. I have 2 printers hp psc 2410, samsung ml2010.  I've never had a problem until recently, and now I get 2 messages all the time... the spooler subsystem app has a problem and needs to close and... .instructions @ 0x0041003d referenced memory @ 0x0041003d memory could not be read.  Whenever I try to print my computer crashes. I tried to uninstall and reinstall the two printers.  no luck.  I tried mrfixit and when it comes to the printer part, mrfixit seems stuck in a loop and it is doing nothing more than an hour.  no luck.  I paid for norton antivirus, thinking it was a virus. no change.  paid for advanced system optimizer. no change.  Now that?

    Hi MarthaForner,

    You can read the following article and check if it helps.

    You cannot print and you receive the error message "Spooler subsystem app has encountered a problem and needs to close."

  • Y at - it a shortcut to auto select group/layer?

    I really use this feature all the time and it's nerve cracking up every time the options bar, and then select group/layer.

    Help, please. It will be a life saver.

    Thanks in advance.

    After selecting the layer as above, release the ALT key and press the ctrl key to simply move the selected layer.

  • [JS CS3/4] Store data app.selection [0] even after deactivation

    Hello

    I am faced with a question that I can't find a way.

    To be brief, I am stockpiling app.selection [0] .silence (text) & go to this value, even though the text is deselected.

    In case I am mistaken (can be:-S), let me detail the process of my script:

    1. a user selects some text

    2. the user run the script

    3. the script retrieves the contents of the selection

    var salt = app.selection [0];

    var myOriginalContents = sel.contents;

    4... makes a reference index & theme

    5... .generates index on the last page

    6.. .find original content in the block of text index

    app.findTextPreferences.findWhat = myOriginalContents;

    app.findText ();

    7. .. Selects found text

    App.Select (App.FindText () [0]);

    8... .added a hyperlink (source = text; destination = original selection page, name is myOriginalContents).

    Just assign the selection to a var.

    you have it in:

    var salt = app.selection [0];

    var myOriginalContents = sel.contents

    so unless you change the content of these vars (by removing items) you can still get it using myOriginalContent, no need to select it again.

  • Home Group problems a1-830 to win 8 laptop

    First of all... Hello world. OK, my problem is... I have a laptop (windows 8) connected to our wireless network and I want to connect to his home groupgroup so I can stream/view movies/photos/music on it... File Explorer of, I added to my apps and he acknowledged the Group and files BUT I can not even access... Error message: connection fails. account has no permission... Does anyone have a solution for this... Help, please! Thank you

    You must check the permissions of the folders/files on your portable computer and activate it for everyone or a single user with password.

  • WebLogic security groups problem

    Hello

    Here's the thing. I am the security configuration of a portal application that I created on JDev. First, I created a group on Weblogic, namely "SecureGroup" (duh), as well as a few users to test, "user1" and "User2" and affected users as members of the "SecureGroup".

    On JDev, I created a business role, "SecureGroup" and it is mapped to an application role, also newly created, called "SecureGroupAR". It is now time to assign resources.

    I created a simple workflow with a view (*.jsff) just to display a text label. This taskflow was granted the application, "SecureGroupAR" role. When I ran the taskflow application of portal was not found. As I begin troubleshooting, I checked first to the Weblogic console by going to the home page >summary of the areas of security >myrealm >users and groups >user1 > and checked the group including user1 belongs to. strangely, there was no group assigned to this user!

    Knowing that I saved my changes, and when the 'Activate changes' button in the upper left pane on the console of WL (view changes and restarts), I also clicked it to save any changes, if they have not already been registered. Problem is, the group shuttle keeps emptying on each others times I restart my app portal.

    Can someone tell me what is happening?

    Happy and grateful.

    JDeveloper 11.1.1.7

    WebLogic 10.3

    Problem solved. In other words:

    1. on your app, whether an ADF or a portal application, you create an application role and grant the necessary resources for this role (or roles, if you have several roles/groups)

    2. this application role is mapped to a business role, which is in fact the group you created on WLS.

    3. of JDev, you can choose to use policies, groups, users, etc., that you have created within JDev, or to use those already defined in WLS, simply by application--> the properties of the application-->, and then choose security options NOT TO migrate groups and users of JDEV, but instead, take those that are defined on a WLS.


    I hope it helps someone as beginning in the ADF security!

    See you soon,.

  • Volume App storage groups

    Has someone already implemented App Volumes storage groups?

    I've set up a group of storage with the following parameters:

    • Automation: "Appstacks of auto import" and "Automatic Appstacks replicate" active
    • Distribution strategy: left by default to "spread" that this only applies to writable volumes according to the documentation and I don't use the accessible volumes in writing
    • Storage of model: I chose here the LUN where my appstacks
    • Selection of storage: Direct
    • Storage: I chose here the LUN I want my appstacks to replicate to

    but nothing seems to happen.

    I'm doing something wrong?

    Looks like you selected only 1 storage location. You must select 1 more data store for replication to occur. Typically, you would select the data store that you create the appstacks on (the same data store that you used for the storage of model) and data 1 or more additional warehouses to replicate. So, using the direct selection of storage, you must have a minimum of 2 warehouses of verified data.

  • Commissioning of Applications using security groups - by application, or several apps by group?

    I was curious how most was assigning applications.  Would you recommend the creation of a group by the application or by using a group for several applications.  The reason that I ask is that we have a group called "Basic Thinapp" which includes standard applications for all users, such as adobe reader, mozilla, flash, quicktime and some others so that all members of Thinapp Base gets our basic fixed package of applications.

    The problem is that we want to install adobe reader locally on our virtual desktops because of the slow launch time and unable to show online them PDFs with IE.  We use thinreg so when Adobe Reader icon is removed from the directory of our icon and when they the logoff and log back in, Adobe leaves behind a non-working icon that useless and users would have to remove it manually if they wanted to get rid of it.  This does not seem the best approach.

    I know that the best way to remove the app is to remove the users outside the group, ask them to logoff and log in again for the app to disappear.  However, users would lose all basic applications.  We could then put back them in the Group and forced to logoff and log back in again and they would get the base once again.  That seems a lot to ask of users.

    Creating a group by application seems to be more directors as well as all users will need to be placed in each groups.

    Is there a better way to do this?

    We mainly use the Application - approach of a group, but have a few groups with multiple applications.

    With your case, I would do the following:

    1. create a new group and put there also: all users in your group of basic thinapp

    2 rebuild the thinapp adobe so that it uses this group

    3. After all users have logged off at least once from step 2, replace your thinapp with the newly rebuilt thinapp

    4. now, the Adobe Reader software works on his own group, you can delete users from this group, and after their next log off / log icon should disappear, because they are no longer allowed.

    The only problem is that you need the thinapp riffle proberly file, so the thinapp must be in the file system until all users are connected at least once. And with the local profiles, connected only once on each computer with a profile of them.

    Andreas

  • BI Publisher create group problem

    Experts,
    I need your help to fix my microsoft model xml word add it to bi publisher.
    Recently, I had a problem loading xml data, after looking online, I found a sloution to delete or rename the xsd files. It worked well and I am able to load xml data now.
    Noe the problem is that I am not able to create a group. That's what I do.
    1. load the xml data.
    2. Insert the required fields.
    3. Select the fields and right-click to bi publisher
    And here, I see three options of 1 properties. 2. create a group of 3. Create a conditional region.
    When I click on one any of them does nothing, wait, a little box comes and goes very fast that says something xxxxxx runtime.

    But create group window does not open. I need you guys help to solve this problem.

    Thank you.

    Friends,
    Someone help me please...

  • PO / GL - amount of grouping problem report

    I have a purchase order with 2 distributions - a single line divided between 2 accounts charge.

    I'm working on a GL Transaction SQL Listing report.

    When I view the Bills matched with the PO, to the level of distribution, I can see 2 lines - one for each inv. distribution:
    AMOUNT   |  PO_NUMBER  |  PO_DATE                | PO_LINE_AMOUNT
    ===================================================================
    -3.96    |  00001294   | 08/04/2009 10:57:46     | 45              
    -41.04   |  00001294   | 08/04/2009 10:57:46     | 45              
    I have an SQL statement composed of 4 unions. It pulls the data from GL.

    I have another SQL statement that accesses tables of purchase.

    I join these tables on the battlefields of the somme, where I join the quantity of the GL SQL with the PO line amount.

    GL will normally go out as something like for example-45, and the PO line amount will come out as something like for example 45.

    Since one is positive and the other negative, I join the SQLs via:
    ... AND (pla.quantity * pla.unit_price) = ABS(xyz.amount)
    It was working fine until I ran into a purchase order with distributions of split.

    Given that the amount of-45 was divided in - 3.96 and - 41.04, it may associate with the 45 of the PO line amount.

    I tried to make a SUM of the amounts of GL, because then the join would work.

    However, the fact, rather than get a-$45, I get an amount of-180, which is four times that.

    Somewhere in my things SQL will c. hurt. I guess it's because of the split distribution.

    I apologize for the 1001 cardinal rules of SQL I probably broke up with SQL below and for being dense, coarse, ignorant and generally not worthy of posting on this forum!

    Any advice much appreciated.

    Thank you

    SQL below:
    SELECT DISTINCT SUM(xyz.amount) amount
                  , pha.segment1 po_number
                  , pha.creation_date po_date
                  , pla.quantity * pla.unit_price po_line_amount
               FROM po.po_requisition_headers_all prha
                  , po.po_requisition_lines_all prla
                  , po.po_line_locations_all plla
                  , po.po_lines_all pla
                  , po.po_headers_all pha
                  , po.po_distributions_all pda
                  , po.po_req_distributions_all prda
                  , ap.ap_invoices_all aia
                  , ap.ap_invoice_distributions_all aida
                  , (SELECT vvv.ibs_company
                          , vvv.ibs_service
                          , vvv.ibs_account
                          , vvv.ibs_centre
                          , vvv.ibs_spare
                          , vvv.period_num
                          , vvv.period_name
                          , vvv.period_year
                          , vvv.period_start_date
                          , vvv.period_end_date
                          , vvv.amount
                          , vvv.effective_date
                          , vvv.je_description
                          , vvv.je_source
                          , vvv.line_description
                          , SUBSTR(
                               vvv.line_description
                             , INSTR(vvv.line_description, 'ERS')
                             , (
                                  INSTR(vvv.line_description, '.')
                                - INSTR(vvv.line_description, 'ERS')
                               )
                            ) invoice_number
                          , vvv.posted_status
                          , vvv.posted_date
                          , vvv.je_name
                          , vvv.je_category
                          , vvv.batch_name
                          , vvv.actual_flag
                          , vvv.vat_code
                       FROM (                                      -- Requisitions
                             SELECT glcc.segment1 ibs_company
                                  , glcc.segment2 ibs_service
                                  , glcc.segment3 ibs_account
                                  , glcc.segment4 ibs_centre
                                  , glcc.segment5 ibs_spare
                                  , glp.period_num
                                  , glp.period_name
                                  , glp.period_year
                                  , glp.start_date period_start_date
                                  , glp.end_date period_end_date
                                  ,   NVL(jel.accounted_dr, 0)
                                    - NVL(jel.accounted_cr, 0) amount
                                  , jel.effective_date
                                  , jeh.description je_description
                                  , jes.user_je_source_name je_source
                                  , jel.description line_description
                                  , jeh.status posted_status
                                  , jeh.posted_date
                                  , jel.reference_1
                                  , jel.reference_4 req_no
                                  , prla.line_num req_line_no
                                  , ' ' po_no
                                  , NULL po_line_no
                                  , NULL invoice_no
                                  , NULL invoice_line_no
                                  , pva.vendor_name supplier
                                  , pva.segment1 supplier_no
                                  , prla.suggested_vendor_product_code
                                                                    supplier_item
                                  , jel.creation_date
                                  , jeh.NAME je_name
                                  , jec.description je_category
                                  , jeb.NAME batch_name
                                  , usr.description created_by
                                  , jel.je_line_num journal_line_no
                                  , jeh.actual_flag
                                  , jel.tax_code vat_code
                                  , gsb.set_of_books_id sob
                                  , glcc.code_combination_id ccid
                               FROM gl.gl_je_lines jel
                                  , gl.gl_je_headers jeh
                                  , gl.gl_je_batches jeb
                                  , gl.gl_je_categories_tl jec
                                  , gl.gl_code_combinations glcc
                                  , po.po_requisition_lines_all prla
                                  , po.po_req_distributions_all prda
                                  , po.po_vendors pva
                                  , apps.fnd_user usr
                                  , gl.gl_periods glp
                                  , gl.gl_sets_of_books gsb
                                  , gl.gl_je_sources_tl jes
                              WHERE jeh.je_header_id = jel.je_header_id
                                AND jeh.je_batch_id = jeb.je_batch_id
                                AND jeh.je_category = jec.je_category_name
                                AND jec.LANGUAGE = 'US'
                                AND jel.code_combination_id =
                                                          glcc.code_combination_id
                                AND jeh.je_source = 'Purchasing'
                                AND jel.reference_1 = 'REQ'
                                AND glp.period_set_name = gsb.period_set_name
                                AND glp.period_name = jeh.period_name
                                AND prda.distribution_id = jel.reference_3
                                AND prda.requisition_line_id =
                                                          prla.requisition_line_id
                                AND pva.vendor_id = prla.vendor_id
                                AND prla.created_by = usr.user_id
                                AND jeh.set_of_books_id = gsb.set_of_books_id
                                AND jeh.je_source = jes.je_source_name
                             UNION
                             -- Purchase Orders
                             SELECT glcc.segment1
                                  , glcc.segment2
                                  , glcc.segment3
                                  , glcc.segment4
                                  , glcc.segment5
                                  , glp.period_num
                                  , glp.period_name
                                  , glp.period_year
                                  , glp.start_date
                                  , glp.end_date
                                  ,   NVL(jel.accounted_dr, 0)
                                    - NVL(jel.accounted_cr, 0)
                                  , jel.effective_date
                                  , jeh.description
                                  , jes.user_je_source_name je_source
                                  , jel.description
                                  , jeh.status posted_status
                                  , jeh.posted_date
                                  , jel.reference_1
                                  , prha.segment1
                                  , NVL(prla.line_num, pla.line_num)
                                  , jel.reference_4
                                  , pla.line_num
                                  , NULL
                                  , NULL
                                  , pva.vendor_name
                                  , pva.segment1
                                  , prla.suggested_vendor_product_code
                                  , jel.creation_date
                                  , jeh.NAME
                                  , jec.description
                                  , jeb.NAME
                                  , usr.description
                                  , jel.je_line_num
                                  , jeh.actual_flag
                                  , jel.tax_code
                                  , gsb.set_of_books_id
                                  , glcc.code_combination_id
                               FROM gl.gl_je_lines jel
                                  , gl.gl_je_headers jeh
                                  , gl.gl_je_batches jeb
                                  , gl.gl_je_categories_tl jec
                                  , gl.gl_code_combinations glcc
                                  , po.po_headers_all pha
                                  , po.po_lines_all pla
                                  , po.po_distributions_all pda
                                  , po.po_vendors pva
                                  , po.po_requisition_headers_all prha
                                  , po.po_req_distributions_all prda
                                  , po.po_requisition_lines_all prla
                                  , apps.fnd_user usr
                                  , gl.gl_periods glp
                                  , gl.gl_sets_of_books gsb
                                  , gl.gl_je_sources_tl jes
                              WHERE jeh.je_header_id = jel.je_header_id
                                AND jeh.je_batch_id = jeb.je_batch_id
                                AND jeh.je_category = jec.je_category_name
                                AND jec.LANGUAGE = 'US'
                                AND jel.code_combination_id =
                                                          glcc.code_combination_id
                                AND jeh.je_source = 'Purchasing'
                                AND jel.reference_1 = 'PO'
                                AND glp.period_set_name = gsb.period_set_name
                                AND glp.period_name = jeh.period_name
                                AND pda.po_distribution_id = jel.reference_3
                                AND pda.po_line_id = pla.po_line_id
                                AND pda.po_header_id = pha.po_header_id
                                AND pva.vendor_id = pha.vendor_id
                                AND prda.distribution_id = pda.req_distribution_id
                                AND prla.requisition_line_id =
                                                          prda.requisition_line_id
                                AND prha.requisition_header_id =
                                                        prla.requisition_header_id
                                AND pla.created_by = usr.user_id
                                AND jeh.set_of_books_id = gsb.set_of_books_id
                                AND jeh.je_source = jes.je_source_name
                             UNION
                             -- Invoices
                             SELECT glcc.segment1
                                  , glcc.segment2
                                  , glcc.segment3
                                  , glcc.segment4
                                  , glcc.segment5
                                  , glp.period_num
                                  , glp.period_name
                                  , glp.period_year
                                  , glp.start_date
                                  , glp.end_date
                                  ,   NVL(jel.accounted_dr, 0)
                                    - NVL(jel.accounted_cr, 0)
                                  , jel.effective_date
                                  , jeh.description
                                  , jes.user_je_source_name je_source
                                  , pla.item_description
                                  , jeh.status
                                  , jeh.posted_date
                                  , jel.reference_1
                                  , prha.segment1
                                  , NVL(prla.line_num, pla.line_num)
                                  , pha.segment1
                                  , pla.line_num
                                  , jel.reference_5
                                  , jel.reference_3
                                  , jel.reference_1
                                  , pva.segment1
                                  , prla.suggested_vendor_product_code
                                  , jel.creation_date
                                  , jeh.NAME
                                  , jec.description
                                  , jeb.NAME batch_name
                                  , NULL
                                  , jel.je_line_num
                                  , jeh.actual_flag
                                  , jel.tax_code
                                  , gsb.set_of_books_id
                                  , glcc.code_combination_id
                               FROM gl.gl_je_lines jel
                                  , gl.gl_je_headers jeh
                                  , gl.gl_je_batches jeb
                                  , gl.gl_je_categories_tl jec
                                  , gl.gl_code_combinations glcc
                                  , ap.ap_invoice_distributions_all ida
                                  , po.po_distributions_all pda
                                  , po.po_lines_all pla
                                  , po.po_headers_all pha
                                  , po.po_requisition_headers_all prha
                                  , po.po_vendors pva
                                  , po.po_req_distributions_all prda
                                  , po.po_requisition_lines_all prla
                                  , gl.gl_periods glp
                                  , gl.gl_sets_of_books gsb
                                  , gl.gl_je_sources_tl jes
                              WHERE jeh.je_header_id = jel.je_header_id
                                AND jeh.je_batch_id = jeb.je_batch_id
                                AND jeh.je_category = jec.je_category_name
                                AND jec.LANGUAGE = 'US'
                                AND jel.code_combination_id =
                                                          glcc.code_combination_id
                                AND jeh.je_source = 'Payables'
                                AND glp.period_set_name = gsb.period_set_name
                                AND glp.period_name = jeh.period_name
                                AND TO_CHAR(ida.invoice_id) = jel.reference_2
                                AND ida.distribution_line_number = jel.reference_3
                                AND ida.po_distribution_id =
                                                            pda.po_distribution_id
                                AND pda.po_line_id = pla.po_line_id
                                AND pva.vendor_id = pha.vendor_id
                                AND pha.po_header_id = pla.po_header_id
                                AND prda.distribution_id = pda.req_distribution_id
                                AND prla.requisition_line_id =
                                                          prda.requisition_line_id
                                AND prha.requisition_header_id =
                                                        prla.requisition_header_id
                                AND jeh.set_of_books_id = gsb.set_of_books_id
                                AND jeh.je_source = jes.je_source_name
                             UNION
                             -- Actuals
                             SELECT glcc.segment1
                                  , glcc.segment2
                                  , glcc.segment3
                                  , glcc.segment4
                                  , glcc.segment5
                                  , glp.period_num
                                  , glp.period_name
                                  , glp.period_year
                                  , glp.start_date
                                  , glp.end_date
                                  ,   NVL(jel.accounted_dr, 0)
                                    - NVL(jel.accounted_cr, 0)
                                  , jel.effective_date
                                  , jeh.description
                                  , jes.user_je_source_name je_source
                                  , jel.description
                                  , jeh.status
                                  , jeh.posted_date
                                  , jel.reference_1
                                  , NULL
                                  , NULL
                                  , ' '
                                  , NULL
                                  , NULL
                                  , NULL
                                  , NULL
                                  , ' '
                                  , NULL
                                  , jel.creation_date
                                  , jeh.NAME je_name
                                  , jec.description
                                  , jeb.NAME
                                  , NULL
                                  , jel.je_line_num
                                  , jeh.actual_flag
                                  , jel.tax_code
                                  , gsb.set_of_books_id
                                  , glcc.code_combination_id
                               FROM gl.gl_je_lines jel
                                  , gl.gl_je_headers jeh
                                  , gl.gl_je_batches jeb
                                  , gl.gl_je_categories_tl jec
                                  , gl.gl_code_combinations glcc
                                  , gl.gl_periods glp
                                  , gl.gl_sets_of_books gsb
                                  , gl.gl_je_sources_tl jes
                              WHERE jeh.je_header_id = jel.je_header_id
                                AND jeh.je_batch_id = jeb.je_batch_id
                                AND jeh.je_category = jec.je_category_name
                                AND jec.LANGUAGE = 'US'
                                AND jel.code_combination_id =
                                                          glcc.code_combination_id
                                AND jeh.actual_flag = 'A'
                                AND jeb.actual_flag = 'A'
                                AND jeh.je_source <> 'Payables'
                                AND NVL(jel.reference_1, ' ') NOT IN('PO', 'REQ')
                                AND glp.period_set_name = gsb.period_set_name
                                AND glp.period_name = jeh.period_name
                                AND jeh.set_of_books_id = gsb.set_of_books_id
                                AND jeh.je_source = jes.je_source_name) vvv
                          , ap.ap_invoices_all aia
                      WHERE sob = 2
                        AND ibs_company = '40'
                        AND ibs_service = 'FD'
                        AND ibs_account = '87161'
                        AND ibs_centre = '3330510'
                        AND aia.invoice_num =
                               SUBSTR(
                                  line_description
                                , INSTR(line_description, 'ERS')
                                , (
                                     LENGTH(line_description)
                                   - INSTR(line_description, 'ERS')
                                  )
                               )
                        AND posted_status = 'P'
                        AND actual_flag = 'A'
                        AND 1 = 1) xyz
              WHERE prha.requisition_header_id = prla.requisition_header_id
                AND plla.line_location_id = prla.line_location_id
                AND pla.po_line_id = plla.po_line_id
                AND pla.po_line_id = pda.po_line_id
                AND pha.po_header_id = plla.po_header_id
                AND prla.requisition_line_id = prda.requisition_line_id
                AND aida.invoice_id = aia.invoice_id
                AND pda.po_distribution_id = aida.po_distribution_id
                AND (pla.quantity * pla.unit_price) = ABS(xyz.amount)
                AND prha.org_id = 7041
                AND prha.authorization_status = 'APPROVED'
                AND prla.suggested_vendor_name = 'CE INT.EMPLOYEE SERVICE CENTRE'
                AND prha.creation_date >= '01-APR-2009'
                AND xyz.invoice_number = 'ERS-3001013-26255'
                AND aia.invoice_num = xyz.invoice_number
                AND xyz.posted_status = 'P'
                AND xyz.actual_flag = 'A'
           GROUP BY pha.segment1
                  , pha.creation_date
                  , pla.quantity * pla.unit_price;

    Hi jimr,.

    you could do your resume at a lower lever without the need for a group

    -sample of how you can summarize without a group of

    with t as (
    select 1 as po_number, 1 as amount from dual union
    select 1, 2 as amount from dual
    )
    select po_number, sum(amount) over (partition by po_number) from t
    

    If you code could be changed with something like this:

    SELECT vvv.ibs_company
                          , vvv.ibs_service
                          , vvv.ibs_account
                          , vvv.ibs_centre
                          , vvv.ibs_spare
                          , vvv.period_num
                          , vvv.period_name
                          , vvv.period_year
                          , vvv.period_start_date
                          , vvv.period_end_date
                          , vvv.amount -- replace this with "sum(amount) over (partition by invoice_number)"
                          , vvv.effective_date
                          , vvv.je_description
                          , vvv.je_source
                          , vvv.line_description
                         -- move this into each SELECT that forms part of the UNION, so it will be repeated, but it'll make it a bit neater at this level
                          , SUBSTR(
                               vvv.line_description
                             , INSTR(vvv.line_description, 'ERS')
                             , (
                                  INSTR(vvv.line_description, '.')
                                - INSTR(vvv.line_description, 'ERS')
                               )
                            ) invoice_number
                          , vvv.posted_status
                          , vvv.posted_date
                          , vvv.je_name
                          , vvv.je_category
                          , vvv.batch_name
                          , vvv.actual_flag
                          , vvv.vat_code
    
  • Select, grouping and counting...

    Hi again once, I managed to work around my problem of trigger, then thank you very much...!
    Now, I have a simple question...

    With the help of two tables, player (areas (PK), (PK, FK1), Noah NomJ, address, Tel., GoC)
    and team (NomE, NoJC (PK, FK1), Noah (Fk1 areas))


    I'll explain the model...

    This is a table of the team and a player Table.
    Naturally, the PK on Player (player) is Noah (team number) and areas (number of players)

    The team table, the primary key is Noah (team number
    and the foreign key is NoJC Noah, representing the number of player CAPTAIN...

    Then...
    I have to make a table of 4 plate: number (Noah), (NomE) team name, team captain name, number of players in the team...
    So I need to combine these two tables... on the first Panel, I had all the info BUT the number of players, which lists all the 1 because of the place where NoJC = areas... but this is necessary to get the name of captain...

    Select NoE, NomE, NomJ as Capitaine, count(*)
    from EQUIPE join JOUEUR using (NoE)
    where NoJ=NoJC
    group by NoE, NomE, NomJ;
    
    select noe, count(*)
    from EQUIPE join JOUEUR using (NoE)
    group by noe;
    Any clue?

    Solkution with ansi syntax

    with  equipe as ( select  1 noe ,'RC Kouba 'NomE, 1 NoJC from dual ),
    joueur  as ( select 1 NoJ, 1 NoE, ' Salim'NomJ , '.....  Montre al'Adresse,
      ' 514 111-1111'Tel,' n' CoJ from dual
        union all
                        select 2 NoJ, 1 NoE, ' Fabien'NomJ , '.....  Montre al'Adresse,
     ' 514 111-2222'Tel,' n' CoJ from dual
       union all
                       select 3 NoJ, 1 NoE, ' Ricahrd'NomJ , '.....  Montre al'Adresse,
     ' 514 111-3333'Tel,' n' CoJ from dual )
    select  noE, equipe.nomE, equipe.noJC as Capitaine,j.nomj ,count (noJ) as "Nombre de joueurs"
    from equipe join joueur  using (noE)
    join   joueur j
    on(noJC=j.noj )
    group by Noe,nome, equipe.noJC,j.nomj
    
    SQL> with  equipe as ( select  1 noe ,'RC Kouba 'NomE, 1 NoJC from dual ),
      2  joueur  as ( select 1 NoJ, 1 NoE, ' Salim'NomJ , '.....  Montre al'Adresse,
      3    ' 514 111-1111'Tel,' n' CoJ from dual
      4      union all
      5                      select 2 NoJ, 1 NoE, ' Fabien'NomJ , '.....  Montre al'Adresse,
      6   ' 514 111-2222'Tel,' n' CoJ from dual
      7     union all
      8                     select 3 NoJ, 1 NoE, ' Ricahrd'NomJ , '.....  Montre al'Adresse,
      9   ' 514 111-3333'Tel,' n' CoJ from dual )
     10  select  noE, equipe.nomE, equipe.noJC as Capitaine,j.nomj ,count (noJ) as "Nombre de joueurs"
     11  from equipe join joueur  using (noE)
     12  join   joueur j
     13  on(noJC=j.noj )
     14  group by Noe,nome, equipe.noJC,j.nomj
     15  /
    
           NOE NOME       CAPITAINE NOMJ     Nombre de joueurs
    ---------- --------- ---------- -------- -----------------
             1 RC Kouba           1  Salim                   3
    
    SQL> 
    
  • Comcast mail will not work on Mail.app PORT 995 problem once again!

    OK, so this problem has arisen in the last days.

    I can't send or receive mail from Comcast in Mail.app

    At first, it was the 995 problem, but now it just says:

    The server returned the error: the attempt to send data to the server "mail.comcast.net" failed.

    After three calls to Comcast, told me it's because Mail.app, because "Apple changed something in the application.

    Is not the thing the more ridiculous than you already heard? I have not updated anything either and to my knowledge, Apple is just change your app on your hard drive.

    Twice before, Comcast, once they have admitted that the problem was theirs, has been able to fix it. But not now.

    Yes I can get mail on the web, but it's stupid, and I need to use the POP email... I work online all day.

    They suggested one of the ports be changed from 587 to 465 but that doesn't work anymore. I use SSL with PW auth.

    I have set up scores of Mac for people and this isn't a problem with Mail.app, but a Comcast server problem that they will NOT admit.

    Anyone having this problem and what to do? I have about 50 other emails configured, are not those of the areas will on the same PIPE and using the VERY SAME SETTINGS to SEND?

    Have you tried the settings for IMAP e-mail? Or is your requirement such that you need POP?

    http://customer.Xfinity.com/help-and-support/Internet/email-client-programs-with - xfinity-email.

    How to set up a Comcast Email in Mail | CityMac

  • Update of Mac app Store system problem

    Hello

    I have a problem with my Mac App Store. It displays some system updates (Safari 9.1 update secrurity 2016-002 7.2 command line tools 10.10.5)

    but it doesn´t install those. I can click on update, it starts for a few seconds and then nothing happens.

    I even downloaded it from apple, but this doesn´t never work.

    Any help will be much appreciated.

    Thank you much in advance.

    Greetings

    Daniel

    Try to manually download this update from the drop-down list. If all goes well he'll fix everything that's wrong with your kit.

    Download update of OS X Yosemite 10.10.5 Combo

    By the end of 2012 mini Mac, OS X El Capitan 10.11.4. Apple Watch, 38 mm silver AL, Watch OS 2.2; iPad 2 Air & iPhone 6 + iOS 9.3

Maybe you are looking for