TO priority no populated
Hi,
We have a custom program to create transfer Orders using the <b>L_TO_Create_Multiple</b> function module for grouping multiple deliveries with same delivery priority into one TO. The TO gets created, but with out the trasnfer order priority information.We are trying to Update the transfer order priority<b>(LTAK-TAPRI)</b> with Delivery priority<b>(LIKP-LPRIO</b>). Can anyone help me out, how this can be done?
"I need this priority information to sort the TO's in RF Monitor."
I have searched all user exits,BADI,and different ways to link the LPRIO to TAPRI, none of them worked!!!!
Any help in this regards is aprreciated
Thanks
Hi Arun,
Thanks for replying.
Its about making the program populate the delivery priority into transfer order priority field in LTAK table.
Have a concerns, what if a direct table update is done.? Is there any other stuff i will be missing or messing up by doing the direct table update.
Ram
Similar Messages
-
Hello all,
We have encountered an issue during our testing for upgrade to R12 (12.1.3) where in the AP Invoice header, the remit-to bank a/c info (a/c number and name) as well as the payment method are not being picked for some sites in certain suppliers (even though the banking details and payment method have been maintained at supplier site level).
However, this is not the same for other sites maintained under the same suppliers for eg:
Supplier A has 2 sites
Site 1
Site 2
In the invoice, when giving Supplier A, Site 1, the remit-to details are not auto populated (but can be manually picked) - same with the payment method (Check)
If Supplier A, Site 2 is picked, all details populate automatically.
Also, this has been noted with suppliers that have been migrated from R11 however, not all migrated suppliers show this behavior.
Any advice is very much appreciated.
Thanks and Regards,
FazlethChanges in relation to Supplier Bank set up in R12 upgrade I worked on in 2010 so may not be 100% but here goes:-
R12 introduces a Priority flag in addition to the Primary flag in the Supplier Bank set up.
This functionality replaces the R11i use of the Primary flag in the current Supplier bank set up.
My understanding is that in the upgrade to R12 the Primary flag will be assigned as in R11i and the new priority flag will be assigned as per the logic of the R11i Primary flag.
In the example above it could be that for supplier site A site 2 was the primary flag and a priority has been given to site 2 if this is the case there may be some small set up that needs to happen to give site 1 a priority in R12.
I don't have the set up steps to hand but you should be able to run some reports and query in the supplier set up to validate this. -
Date is not getting populated soon after a change in a field which has LOV.
Hi friends,
I have a requirement in my form......
I have a two fields, in my form......
One field which has a LOV's list---------------> the name of the field is "PRIORITY" and it has following LOV's
*) LOW *) MEDIUM *) HIGH..
Second field is of date field-----------------> the name of the field is "DUEDATE"....
I needed is that soon after i select anyone of values from the list in "PRIORITY" column for example assume it has "LOW"...
The due date column should automatically populate the date, accordingly that is setted for LOW..
The same is in case of "MEDIUM" and "HIGH"....
How it is possible to populate the date accordingly soon after i picked one of the LOV's from the priority column...
Whether i need to set any dynamic actions for the due date column...or else....if so means......
guide me friends..in stepwise manner......whether to write any query in back end....
i also tried with query it didnt worked.......
regards,
Harry......Hi,
If i gave the query that i mentioned above post, in my sql statement, the dynamic action is working but not fetching the correct date for the selected priority..
what is the answer that im getting is
When i select priority as low means
what is populating in my due date field is not the date im expecting........
it is giving some thing in the due date field like the below i mentioned.......
" ,,11/10/10 0&#58;0&#58;0,11/10/10 0&#58;0&#58;0,,,,,,,,,,11/24/10 0&#58;0&#58;0,11/24/10 0&#58;0&#58;0,,,,,,,,,,,11/04/10 0&#58;0&#58;0,,,,,,,11/24/10 0&#58;0&#58;0,,,,,,,,,,,,,,,,,,,11/18/10 0&#58;0&#58;0,,,,,,11/24/10 0&#58;0&#58;0,,,11/24/10 0&#58;0&#58;0,11/24/10 0&#58;0&#58;0,,,,11/27/10 0&#58;0&#58;0,11/26/10 0&#58;0&#58;0,,,,,,,11/05/10 0&#58;0&#58;0,,,,11/24/10 0&#58;0&#58;0,11/24/10 0&#58;0&#58;0,,,,,,,,,,,11/19/10 0&#58;0&#58;0,11/05/10 0&#58;0&#58;0,11/24/10 0&#58;0&#58;0"
i dont know why it is returning like this......please help me........
Regards,]
Harry...... -
ARP table not populating mac address for previously reachable IP address
Router has been online and working fine with one BGP neighbor for almost 2 years and no downtime. 2 weeks ago, added a 2nd BGP peer. Everything worked fine for 2 weeks, then all of a sudden yesterday the 2nd BGP peer is disconnected and does not come back. ISP checks and sees everything looks fine on their end. We cannot even ping each other now.
Upon investigation, the ARP table is not even populating the MAC address for the BGP peer IP anymore (same local subnet). Stays "incomplete" in the table no matter what we do, including clearing arp table, changing IP address, etc.
Plug a laptop directly into the 2nd BGP peer FE port and replicate the IP addressing. Laptop cannot ping Router, but Router CAN ping laptop. Check ARP table, but STILL no mac address assigned and now not even the ARP table showing "incomplete".
Thinking it could be the FE interface, switch to the 2nd FE interface and perform same laptop test, this time with arbitrary IP addressing. Now cannot ping each other, no MAC in ARP table.
End up rebooting the router and lo-and-behold, everything is working normally again. 2nd BGP peer peers up instantly.
I should also mention that the 1st BGP peer worked flawlessly throughout, taking all the Internet load and having no issues throughout.
Also, the FE ports for the 2nd BGP peer are on an HWIC FE card plugged into the router. The 1st BGP peer is plugged into the built-in GE interface. 2901 running: c2900-universalk9-mz.SPA.151-4.M4.bin
Lastly, no router resource issues, no error messages, no logs. Just the BGP peer disconnecting.
I have never, in 20 years working with Cisco routers seen something like this before. This is the most fundamental aspect of IP and Ethernet that was not working.
Has anyone ever seen this behavior before??
Here is the router config (IP's changed):
version 15.1
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
service internal
service sequence-numbers
boot-start-marker
boot-end-marker
logging buffered 150000
aaa new-model
aaa authentication login LAUTHEN local
aaa authentication login TAUTHEN local group tacacs+ enable
aaa authorization console
aaa authorization exec LAUTHOR local if-authenticated
aaa authorization exec TAUTHOR local group tacacs+ if-authenticated
aaa session-id common
clock timezone PST -8 0
clock summer-time PDT recurring
no ipv6 cef
no ip source-route
ip cef
no ip domain lookup
multilink bundle-name authenticated
username ubiadmin privilege 15 secret 4 .JbeuWXuZvchrG0OL.5BftFtqrrEyxcnVHn5rIuCnTk
username umitsnoc01 privilege 15 secret 4 cUmoRUjey9O1x.wk9S.kleX.iAAhCwihupr6Z98p6OA
redundancy
ip ssh version 2
track 1 interface GigabitEthernet0/0 line-protocol
class-map match-any AutoQoS-VoIP-RTP-Trust
match access-group name SIP-Media-INBOUND
class-map match-any AutoQoS-VoIP-Control-Trust
match ip dscp cs3
match ip dscp af31
class-map match-any Customer-Voice
match access-group name Customer-VPNs
class-map match-any media
match access-group name SIP-Media
class-map match-any signaling
match access-group name SIP-Signaling
policy-map AutoQoS-Policy-Trust
class AutoQoS-VoIP-RTP-Trust
priority percent 70
class AutoQoS-VoIP-Control-Trust
bandwidth percent 5
class class-default
fair-queue
policy-map queue
class signaling
bandwidth percent 5
class media
priority percent 50
class Customer-Voice
priority percent 40
class class-default
fair-queue
policy-map shape
class class-default
shape average 10000000
service-policy queue
interface Embedded-Service-Engine0/0
no ip address
shutdown
interface GigabitEthernet0/0
description BGP Peer 1
ip address 2.2.2.2 255.255.255.252
no ip redirects
ip flow ingress
ip flow egress
duplex auto
speed auto
service-policy output shape
interface GigabitEthernet0/1
description LAN
ip address 1.2.3.4 255.255.255.0
no ip redirects
ip flow ingress
ip flow egress
standby 255 ip 1.2.3.1
standby 255 priority 105
standby 255 preempt
standby 255 mac-address 1a2b.3c4d.5e6f
standby 255 track 1 decrement 10
duplex auto
speed auto
service-policy output AutoQoS-Policy-Trust
interface FastEthernet0/0/0
description BGP Peer 2
ip address 1.1.1.1 255.255.255.252
ip flow ingress
ip flow egress
duplex full
speed 100
service-policy output shape
interface FastEthernet0/0/1
no ip address
shutdown
duplex auto
speed auto
router bgp 7777
bgp router-id 2.2.2.2
bgp log-neighbor-changes
network 1.2.3.0 mask 255.255.255.0
neighbor 1.1.1.2 remote-as 5555
neighbor 1.1.1.2 update-source FastEthernet0/0/0
neighbor 1.1.1.2 prefix-list L3-DEFGW in
neighbor 1.1.1.2 route-map L3-LPREF-IN in
neighbor 2.2.2.1 remote-as 6666
neighbor 2.2.2.1 ebgp-multihop 2
neighbor 2.2.2.1 update-source GigabitEthernet0/0
neighbor 2.2.2.1 send-community
neighbor 2.2.2.1 prefix-list COLO-DEFGW in
neighbor 2.2.2.1 route-map COLO-LPREF-IN in
neighbor 2.2.2.1 route-map COLO-OUT out
ip forward-protocol nd
ip bgp-community new-format
ip as-path access-list 5 permit _5555_
ip as-path access-list 5 deny .*
ip as-path access-list 10 permit ^6666$
no ip http server
no ip http secure-server
ip flow-top-talkers
top 50
sort-by bytes
ip route 0.0.0.0 0.0.0.0 1.1.1.2 254 name L3
ip route 0.0.0.0 0.0.0.0 2.2.2.1 255 name COLO1
ip route 10.0.0.0 255.0.0.0 10.10.10.10 name FW_OUTSIDE
ip tacacs source-interface GigabitEthernet0/1
ip access-list standard SNMP_SOURCES
permit 12.12.12.0 0.0.0.255
deny any log
ip prefix-list L3-DEFGW seq 5 permit 0.0.0.0/0
ip prefix-list COLO-DEFGW seq 5 permit 0.0.0.0/0
ip prefix-list COLO-LPREF-OUT seq 5 permit 1.2.3.0/24
route-map COLO-LPREF-IN permit 5
match as-path 5
set local-preference 250
route-map COLO-LPREF-IN permit 10
set local-preference 150
route-map COLO-LPREF-IN permit 20
route-map COLO-OUT permit 10
match ip address prefix-list COLO-LPREF-OUT
set as-path prepend 7777 7777 7777
set community 29795:1004
route-map COLO-OUT permit 20
route-map L3-LPREF-IN permit 10
match as-path 10
set local-preference 200
route-map L3-LPREF-IN permit 20
set local-preference 150
snmp-server enable traps snmp authentication linkdown linkup coldstart warmstart
snmp-server enable traps vrrp
snmp-server enable traps flowmon
snmp-server enable traps transceiver all
snmp-server enable traps ds1
snmp-server enable traps call-home message-send-fail server-fail
snmp-server enable traps tty
snmp-server enable traps license
snmp-server enable traps envmon
snmp-server enable traps ethernet cfm cc mep-up mep-down cross-connect loop config
snmp-server enable traps ethernet cfm crosscheck mep-missing mep-unknown service-up
snmp-server enable traps flash insertion removal
snmp-server enable traps mac-notification
snmp-server enable traps aaa_server
snmp-server enable traps cef resource-failure peer-state-change peer-fib-state-change inconsistency
snmp-server enable traps memory bufferpeak
snmp-server enable traps config-copy
snmp-server enable traps config
snmp-server enable traps config-ctid
snmp-server enable traps event-manager
snmp-server enable traps hsrp
snmp-server enable traps cpu threshold
snmp-server enable traps rsvp
snmp-server enable traps syslog
snmp-server enable traps vtp
snmp-server enable traps ipslaWhen you were checking the ARP table was there an entry for Fast0/0/0?
HTH
Rick -
Populating cascading listboxes without processing the query in HIR 8.3
I have 2 listboxes. First listbox populated using Group Number. Second Listbox should contain all account numbers corresponding to the Group Number selected in the first listbox, I need to do this without processing the query. I tried this way :
1. Created a query section “Query” and in that created a limit Group Number. Through this limit I am populating the first lisbox.
2. Created another query section “Query2”. In that created Group Number as first limit and Account Numbers as another listbox.
3. After selecting the Group Number from listbox1, I am passing this value to the first limit of “Query2”.
4. I am doing RefreshAvailableValues on the second limit of “Query2”. Now I am expecting the records corresponding the selected account number in the second limit of “Query2”. But I’m getting all the available values.
What is wrong in the above or any better solution is available please suggest.
Edited by: user13386590 on Jul 12, 2010 9:32 PMWhy do you want to do this without processing a query.
Each time you execute the script RefreshAvailableValues you are essentially executing a query...look at the Query log.
As for the issue in # 4 you will want to change the properties on the Data Model. From menu select
DataModel
- Data Model Options
check the Filter/Limit tab and try out different options
--- below is from 11.1.1.1 help
Data Model Options: Filters
Use the Filters tab to specify filter browse level preferences and to select global filter options.
When you use Show Values to set filters, you may sometimes need to sift through a lot of data to find the particular values you need. Filter preferences enable you to dictate the way existing filters reduce the values available through the Show Values command.
For example, you want to retrieve customer information only from selected cities in Ohio. However, the database table of customer addresses is very large. Because Interactive Reporting applies a default filter preference, once you place the initial filter on State, the Show Values set returned for City is automatically narrowed to those cities located in Ohio. This saves you from returning thousands of customers, states, and from all sales regions.
You can adjust this preference so that the initial filter selection has no effect on the potential values returned for the second filter (all cities are returned regardless of state).
Filter Options
Show Minimum Value Set—Displays only values that are applicable given all existing filters. This preference takes into account filters on all tables and related through all joins in the data model (which could be potentially a very large and long running query).
Show Values Within Topic—Displays values applicable given existing filters in the same topic. This preference does not take into account filters associated by joins in the data model.
Show All Values—Displays all values associated with an item, regardless of any established filters.
Tip:
When setting these preferences for metatopics, be sure to display the data model in Original view.
Global Filter Options (Designer only)
Show Values—Globally restricts use of the Show Values command in the Filter dialog box, which is used to retrieve values from the server.
Custom Values—Globally restricts use of the Custom Values command in the Filter dialog box, which is used to access a custom values list saved with the Interactive Reporting document file or in a flat file.
Custom SQL—Enables the user to code a filter directly using SQL.
Note:
The Topic Priority dialog box is displayed only if you first select join in the data model.
Note:
Since most data models do not have the same set of topics, you cannot save changes to the topic priority as default user preferences. (For more information on default user preferences, see Saving Data Model Options as User Preferences.)Often times if I am trying to load controls for parameter screen I will have a seperate query and results section for that purpose. Then I use the Filter/Limit on the Results section to control the cascade feature you are trying to accomplish. In your case your results would contain the distinct list of Group Number and Account Number.
Wayne -
Withholding Tax not populated using BAPI
Hello
We are using BAPI to post invoices instead of FB60 but noticed a difference in the withholding tax data.
Using FB60 when we provide a N1, the tax code shows up as starand the withholding tax exempt is populated along with the withholding tax code from the vendor master.
When we try to do the same using the BAPI providing it with N1, it does not populate the withholding tax exempt and withholding tax code fields
We are using classing withholding tax.
why the BAPI is behaving differently than FB60 and not picking up the standard configuration
This is priority as we are in Production and invoices which dont have these withholding tax information are not getting picked up for payment.
ThanksSolved myself...using the ACCOUNTPAYABLE-W_TAX_CODE field to populate the tax code which is stored on the Vendor Master
-
Linking Priority and ABC indicator
Gentlemen,
Here i have an interesting requirement. My customer require to set the priority of notification based on the equipment criticality, ie based on the ABC indicator.
How to link these two things ( Priority in notification and ABC indicators of Tech object ) object and make it default.
Please throw your valuable ideas.
Regards
Srinivasan MadaswamyDear Pete,
Yes, this default data can be allowed to get into notification while saving.
The only criteria is to have automatic population of priority field based on criticality of equipment.
Regards
Srinivasan Madaswamy -
Population of fields in Credit Mangement for Tcode BP in ABAP
Hi,
I need to trigger the BADI when the customer is created and saved so that the fields in the BP will be auto populated when the BADI is triggered.
the fields which i have to populate is in the Credit Profile Tab in SAP credit managenent transaction Code BP
i.e score has to be 80 for all the customers own_rating is the field.
and have to populate 2 other fields risk_class and customer group.
the badi i used is CVI_custom_mapper where i am not finding any above fields.
kindly help me in solving this issue..
<removed by moderator>
fareed
Edited by: Thomas Zloch on Jan 12, 2011 5:26 PM - priority adjustedAwaiting for your valuable reply
-
GRC 10 - Request Priority Field
Hi All,
I have activated the below BC set in GRC 10.
GRAC_ACCESS_REQUEST_PRIORITY
Below mentioned values have been updated.
Problem is during access request creation, priority field is empty and these values are not coming there and priority drop down field is empty. Please suggest if i am missing anything. Apart from this all are working and everything is fine.
Regards,
Madhu.Hi Nandita,
No erros during BC set activation. Values are also available in the view GRACV_PRIORITY. But they are not populated in priority field during access request creation. If i make this Priority field as editable, even then it is not working as i am not able to enter any values manually. I maintained a default value for this priority field and even that was not reflecting. Am i missing anything? Please suggest.
One more thing is when i am defining my BRF+ rules with priority fileld, I am able to see these values there but not coming in access request screen.
Regards,
Madhu. -
Alert monitor PP/DS resource alert default priority error
Hi Guys,
I am seeing DP (Default Priority) column showing error lable in PP/DS alert profile against
1. Overload on single activity resource
2. Overload on Multi-activity resource
3. Characteristics mismatch on resource
Where can I set this right...cos this is leading me to non display of overload capacity though the resource is actually overloaded.
Thanks In advance
Regards
Prasanna.HI Prasanna,
Threshold limits for resource overload alerts are specified in the Alert Monitor profile for PPDS and not in the resource master. In resource master you define the bucket capacity for the resource.
In the Alert Monitor profile, you specify 3 threshold values, namely, information, warning and error. Suggest you take the below steps to see if the Alert profile is really working:
1. Identify a test resource
2. Define the block capacity as per your requirement.
3. Create orders on the test resource such that it becomes overloaded.
4. In the Alert Monitor profile, define a new PPDS alert Profile keeping the below points in mind:
a) Select "Resource Utilization in Bucket(PPDS)"
b) Define the threshhold values for the above three types of alerts
c) Fill the selection of resources tab with the test reosurce and test location
d) DO NOT MAKE ANY OTHER SELECTION
e) Save the profile
f) Redertmine the alerts
It should display all the Alerts, if any on the above test resource. One point to note here is that, if in DP column, the alert type is ERROR (ie red) then only the values which are above the Threshold value for ERROR shall be populated.
Kindly take note of the planning version in which you are testing the scenario and it should be same in the Alert monitor profile as well.
Please revert if you are still not able to see the alerts.
Regards,
Binod -
Priority not presented in the email notification
Hi all :) .. my problem is when i create an incident directly from the console a notification will be sent to the affected and assigned to users that shows the target resolution time and the priority, but when the incident is created from the portal or
in other words from a template it doesn't show priority or target resolution time, when i set the impact and urgency values in the incident template the priority value is always empty unlike creating the incident directly from the console !! anyone can help
??Priority and Target Resolution Time are calculated values. They're calculated by the Incident Form. When you select the Impact and Urgency on the Incident form, the form itself (in the code-behind) sets the Priority value based on the Incident
priority matrix (which can be configured in "Incident Settings" in Administration|Settings). It also sets the Target Resolution Time.
So, when you create an Incident from a template using the portal or any other process other than the Incident Form, the priority value and Target Resolution time will not be automatically populated.
Here are some solutions you can explore with varying levels of complexity and compromises:
1) The easiest (in my opinion) is to simply set the priority value in your template. This can be done by directly editing the management pack template. (The Priority isn't calculated when you're creating an Incident template using the Incident form
in the console..it appears to be a bug in the Incident form.)
The compromise is that anytime you change the Incident Priority matrix the priority value in your template may no longer match what you changed. Plus you'll have to manually modify the xml in your incident template's management pack.
The other compromise is that you can't really set the Target Resolution Time in the template because you don't know what it will be. So your notification still will not include it.
2) Create some custom workflows, extend the Incident class, and re-work your notification subscription criteria. This is an uncomfortably complex approach (maybe someone will have a simpler one). This approach assumes you only want to send a notification
when the Incident is created and only when the priority/TRT has been calculated.
Extend your incident class with a "PriorityCalculatedSendNotification" Boolean property.
Modify your Incident template and set the PriorityCalculatedSendNotification value to false.
The first custom workflow will trigger on the creation of an Incident. This workflow runs C# or a Powershell script that examines the Incident Priority calculation and applies the appropriate value to the new Incident's Priority property if the
Priority/TRT is not already set. Similarly, if the Priority isn't already set, it also sets "PriorityCalculatedSendNotification" to true. Lastly, it calculates the TRT and applies that value to the Incident record.
The second custom workflow triggers when and Incident is updated and the PriorityCalculatedSendNotification is true. This workflow sends your notification template and also applies a new Incident template that sets the PriorityCalculatedSendNotification
to false. (The only value in that template would be PriorityCalculatedSendNotification=false to prevent it from overwriting any other value)
Your existing notification subscription that triggers when an Incident is created needs additional criteria. The additional criteria will be "Priority not equal to null" or "Priority not equal to 0" (one of those two, I can't remember
off the top of my head which option it is).
3) The simplest option of all..in your email notification, simply say "If this incident was created from the portal, it will not have a priority or target resolution time yet". Instead of adjusting Service Manager, adjust your
user's expectations ;) -
I create 3 access policy for AD, Exchange, and HRIS. And the priority is 1 for AD, 2 for Exchange and 3 for HRIS.
I assume provisioning will go for AD first, then Exchange, and HRIS the last. During provisioning Exchange, I include task to update user email address in OIM user profile. So when provisioning for HRIS running, I can include email address information to HRIS.
But what really happened was, provisioning for HRIS going first, then AD and Exchange the last. Due to this, no email address information is populated to HRIS.
Can anyone give me input how to solve this ? Thanks.Please see the document:
http://download.oracle.com/docs/cd/E10391_01/doc.910/e10360/accesspolicies.htm
Conflicts can arise from multiple access policies being applied to the same user. Because a single instance of a resource is provisioned to the user through access policies, Oracle Identity Manager uses the highest priority policy data for a parent form. For child forms, Oracle Identity Manager uses cumulative records from all applicable policies.
You can make HRIS dependent on Exchange. Then HRIS will be provisioned after Exchange -
Help populating table with applescript
Hi
I'm posting here in the hope that someone can give me a helping hand with an applescript. I myself know very little about applescript. I can create something very basic but thats about it.
I have the following table
Name
Value
Amount
Donald Duck
4
5000
Goofy
10a
7000
George
5
4000
Steve
4
6000
Hank
18
9000
Sue-Ellen
5
9050
John
18
11000
Hector
18
5500
I would like to create an applescript that runs through this table and populates another table, we can call it "Results", that would look something like this
Value 4
Donald Duck
5000
Steve
6000
Value 5
George
4000
Sue-Ellen
9050
A further complication is that this newly populated should only be populated if the following condition exists. The total sum of the newly created table (i.e the value column) should only be populated with posts from the original table as long as the sum of the newly created posts do not exceed the sum of a cell in a third table (we can call this the "sumtable").
To make it clearer. If the sum of the "sumtable" is 24 050 then the newly created table will only create the posts I have made above. These posts must be made using the following values and in the order the values appear. The complete list of values is 3a, 4, 4a, 5, 6, 7, 10, 10a, 12, 13, 18 . So the script would start looking for values in that order and whenever it reaches a total sum that is equal to the sum in "sumtable" it will use those values, and only those, and populate the new table creating the necessary rows needed.
It's possible that this is way to complicated to do. I have tried to make a formula in a table to do this but the problem is I ca never know how many rows are needed in advance.
Hoping for some help or tips, but understanding if this is asking too much considering the amoutn of effort needed.
Thanksconsiglieri_swe wrote:
i.e Goofy only gets part of his debt.
The partial payment complicates the logic a little. Below is a script that can handle that. The usage is the same. Paste it into AppleScript Editor. Run. Paste results into A2 of the Results table and the table expands automatically to the number of rows needed. The Sum formula is in a Footer Row.
The revised script, which now reads the available amount from a cell in a table (easily changed to another table as needed), is below.
SG
--accounts for partial payment of "last" creditor
--reads available amount from a cell in a table
property thePriorities : {"3a", "4", "4a", "5", "6", "7", "10", "10a", "12", "13", "18"}
tell application "Numbers" to tell the front document to tell sheet "Sheet 1"
tell table "Maximum"
set maxAmount to the value of cell "A2"
end tell
tell table "Table 1"
set {pasteStr, stillAvailable, allDone} to {"", maxAmount, false}
repeat with i from 1 to count of thePriorities --cycle through 3a, 4, 4a, etc
set priorityBeingTallied to (item i of thePriorities)
repeat with j from 2 to count of its rows
tell row j
--get the values in a row
set thisName to value of its first cell
set thisPriority to my stripDecimal(value of its second cell)
set thisAmount to value of its third cell
if thisPriority is equal to priorityBeingTallied then --if it's in this priority
if stillAvailable > 0 then --include the row unless no more money
set thisAllocation to my lesserOf(thisAmount, stillAvailable)
set pasteStr to pasteStr & thisPriority & tab & thisName & tab ¬
& thisAllocation & return
set stillAvailable to stillAvailable - thisAllocation
end if
end if
end tell
end repeat --rows
end repeat --priorities
end tell --table
end tell --app
set the clipboard to pasteStr
display notification "Click once in a cell and paste." with title "Numbers"
pasteStr
--handler needed because when asked for a cell value Numbers 3 adds .0
to stripDecimal(val)
set val to val as string
set {oTID, AppleScript's text item delimiters} to {AppleScript's text item delimiters, "."}
set s to item 1 of val's text items
set AppleScript's text item delimiters to oTID
return s
end stripDecimal
to lesserOf(x, y) --used to calculate partial payment to "last" creditor
if x < y then return x
return y
end lesserOf
--end of script -
Adding a priority to a work item
hi
i have created a priority field in the customised table.i need to tranfer that to workflow.I need to make changes in the ATTRIBUTE program.can anyone help me how to go with the code in Attribute program.
I need to 'get parameter' write a select statement in the attribute program and 'set parameter.My field name is "priority" in customised table.Can anyone provide me with the sample code to write in attribute program.
Regards
dineshHi Dinesh,
If your attribute is based on the same table as the <i>key</i> of the business object, then When you add the attribute in your custom BO, Wizard will automatically provide the code for you to get this attribute populated.
Hope this helps you.
Regds,
Akshay
PS: Some pointswould be nice if it helps -
Gui timer v/s Async timer priority
Hi NI,
I am trying to build an application where in i am communicating with an automotive ECU over RS-232 periodically. I am using an aysnc timer to do the communications part and a GUI timer to do the graphical object update. I have three questions for your team.
1. What RTOS and PC configuration do you recommend for using a RT Async Timer with Prority ? (preferably whats available in the market today in terms of "cheap" hardware)
2. What is the priority of the GUI timer when compared to the Async timer? Is is possible for the GUI timer to inetrrupt the Async timer fucntion call ? If yes...is there an exclusion mechanism that would stop this from happening ?
3. I am using a two linked list concept...the first list populates while the other's data is being drawn on the strip chart...and then i flip over to populating the second linked list while the first lists data is being plotted. The communications(population of data in a structure in a linked list) is being done in the Async thread while the plotting is being done in the GUI thread. The issue i am facing is that i do not have a clean linked list population, plotting and freeing of data sequence...i feel this is due to some un-predictability in the timer function calls.(hence Q2 above). Do you recommend only using thread safe queues or do you think this is do-able with linked lists.
Looking forward to your reponse.
-AshishI don't know what degree of certainity you need but a "fixed calling and execution sequence" is just a dream in a Windows environment.
Windows will operate your threads together with many more of its own, all with varying priorities.
So, you should think of priority as a vague way of making one thread to be operated more/less than another lower/higher degree thread.
No thread priority class guarantees a certain frequency of thread execution.
GUI timer callbacks are executed in the main program thread while async timers are executed in a seperate thread.
So, yes their execution times may coincide. Hence the need to protect your global data.
Data accessed by multiple threads should be protected so that, no thread would be interrupted in the middle of a write/read operation on that data.
TSQs do that for you. Otherwise you cannot be sure about the integrity of the data you are plotting.
If you need do some more reading about this. But TSQs stand out as a more elegant way to solve your problem.
S. Eren BALCI
www.aselsan.com.tr
Maybe you are looking for
-
Captivate 4 Aggregate Reporting
We have created a training using the aggragate feature in captivate. The training has multiple modules in the table of contents and contains individual quiz questions. We have published to the Connect server. The problem is that as soon as the use
-
Issues Accessing VPN via Time Capsule
My work has a VPN (via Palo Alto's Global Protect) set-up to allow for remote desktop connections. For some future projects, it is really important that I get this working. However, I am running into an issue that is directly related to my Apple Ti
-
How to call swf in swf at proper x,y co-ordinate
Hello, can any tell me how to call a swf into anather swf but at proper x and y co-ordinates. thnx n regards justbipin
-
EDQ - error exporting to DB: ORA-00928 missing SELECT
Hi, I am using EDQ v12.1.3.0.0 and have created a very basic proof of concept process which takes as input a comma-demilited file through the Reader process and then has a Write processor to write the input to Staged Data. I am then trying to Export
-
When I open an image to edit it in Elements 10 editor, the software crashes with the first edit action attemped on the image. No matter which tool or dialog box I select, the mousepoint goes to eyedropper, the drop down menus are grayed out, and no o