How to get meta data for email attachments in iphone?
Hi am new to iphone programming,i want to get the meta data for the emails attachments in the inbox of the iphone to be listed the emails with attachment.
Hi..
You have to use SWC_GET_ELEMENT CONTAINER '( string name of your attribute)' your_attribute.
All attributes are part of container issue.. SWC_GET_ELEMENT command can give you these values.
Hope to help...
Similar Messages
-
How to Get Missing Dates for Each Support Ticket In My Query?
Hello -
I'm really baffled as to how to get missing dates for each support ticket in my query. I did a search for this and found several CTE's however they only provide ways to find missing dates in a date table rather than missing dates for another column
in a table. Let me explain a bit further here -
I have a query which has a list of support tickets for the month of January. Each support ticket is supposed to be updated daily by a support rep, however that isn't happening so the business wants to know for each ticket which dates have NOT been
updated. So, for example, I might have support ticket 44BS which was updated on 2014-01-01, 2014-01-05, 2014-01-07. Each time the ticket is updated a new row is inserted into the table. I need a query which will return the missing dates per
each support ticket.
I should also add that I DO NOT have any sort of admin nor write permissions to the database...none at all. My team has tried and they won't give 'em. So proposing a function or storable solution will not work. I'm stuck with doing everything
in a query.
I'll try and provide some sample data as an example -
CREATE TABLE #Tickets
TicketNo VARCHAR(4)
,DateUpdated DATE
INSERT INTO #Tickets VALUES ('44BS', '2014-01-01')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-05')
INSERT INTO #Tickets VALUES ('44BS', '2014-01-07')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-03')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-09')
INSERT INTO #Tickets VALUES ('32VT', '2014-01-11')
So for ticket 44BS, I need to return the missing dates between January 1st and January 5th, again between January 5th and January 7th. A set-based solution would be best.
I'm sure this is easier than i'm making it. However, after playing around for a couple of hours my head hurts and I need sleep. If anyone can help, you'd be a job-saver :)
Thanks!!CREATE TABLE #Tickets (
TicketNo VARCHAR(4)
,DateUpdated DATETIME
GO
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-01'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-05'
INSERT INTO #Tickets
VALUES (
'44BS'
,'2014-01-07'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-03'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-09'
INSERT INTO #Tickets
VALUES (
'32VT'
,'2014-01-11'
GO
GO
SELECT *
FROM #Tickets
GO
GO
CREATE TABLE #tempDist (
NRow INT
,TicketNo VARCHAR(4)
,MinDate DATETIME
,MaxDate DATETIME
GO
CREATE TABLE #tempUnUserdDate (
TicketNo VARCHAR(4)
,MissDate DATETIME
GO
INSERT INTO #tempDist
SELECT Row_Number() OVER (
ORDER BY TicketNo
) AS NROw
,TicketNo
,Min(DateUpdated) AS MinDate
,MAx(DateUpdated) AS MaxDate
FROM #Tickets
GROUP BY TicketNo
SELECT *
FROM #tempDist
GO
-- Get the number of rows in the looping table
DECLARE @RowCount INT
SET @RowCount = (
SELECT COUNT(TicketNo)
FROM #tempDist
-- Declare an iterator
DECLARE @I INT
-- Initialize the iterator
SET @I = 1
-- Loop through the rows of a table @myTable
WHILE (@I <= @RowCount)
BEGIN
-- Declare variables to hold the data which we get after looping each record
DECLARE @MyDate DATETIME
DECLARE @TicketNo VARCHAR(50)
,@MinDate DATETIME
,@MaxDate DATETIME
-- Get the data from table and set to variables
SELECT @TicketNo = TicketNo
,@MinDate = MinDate
,@MaxDate = MaxDate
FROM #tempDist
WHERE NRow = @I
SET @MyDate = @MinDate
WHILE @MaxDate > @MyDate
BEGIN
IF NOT EXISTS (
SELECT *
FROM #Tickets
WHERE TicketNo = @TicketNo
AND DateUpdated = @MyDate
BEGIN
INSERT INTO #tempUnUserdDate
VALUES (
@TicketNo
,@MyDate
END
SET @MyDate = dateadd(d, 1, @MyDate)
END
SET @I = @I + 1
END
GO
SELECT *
FROM #tempUnUserdDate
GO
GO
DROP TABLE #tickets
GO
DROP TABLE #tempDist
GO
DROP TABLE #tempUnUserdDate
Thanks,
Shridhar J Joshi
<If the post was helpful mark as 'Helpful' and if the post answered your query, mark as 'Answered'> -
How to get the date for the first monday of each month
Dear Members,
How to get the date for the first monday of each month.
I have written the following code
SELECT decode (to_char(trunc(sysdate+30 ,'MM'),'DAY'),'MONDAY ',trunc(sysdate+30 ,'MM'),NEXT_DAY(trunc(sysdate+30 ,'MM'), 'MON')) FROM DUAL
But it look bith complex.
Abhishek
Edited by: 9999999 on Mar 8, 2013 4:30 AMUse IW format - it will make solution NLS independent. And all you need is truncate 7<sup>th</sup> day of each month using IW:
select sysdate current_date,
trunc(trunc(sysdate,'mm') + 6,'iw') first_monday_the_month
from dual
CURRENT_D FIRST_MON
08-MAR-13 04-MAR-13
SQL> Below is list of first monday of the month for this year:
with t as(
select add_months(date '2013-1-1',level-1) dt
from dual
connect by level <= 12
select dt first_of_the_month,
trunc(dt + 6,'iw') first_monday_the_month
from t
FIRST_OF_ FIRST_MON
01-JAN-13 07-JAN-13
01-FEB-13 04-FEB-13
01-MAR-13 04-MAR-13
01-APR-13 01-APR-13
01-MAY-13 06-MAY-13
01-JUN-13 03-JUN-13
01-JUL-13 01-JUL-13
01-AUG-13 05-AUG-13
01-SEP-13 02-SEP-13
01-OCT-13 07-OCT-13
01-NOV-13 04-NOV-13
FIRST_OF_ FIRST_MON
01-DEC-13 02-DEC-13
12 rows selected.
SQL> SY. -
In mdx how to get max date for all employees is it posible shall we use group by in mdx
in mdx how to get max date for all employees is it posible shall we use group by in mdx
example
empno ename date
1 hari 12-01-1982
1 hari 13-06-2000
by using above data i want to get max dataHi Hari3109,
According to your description, you want to get the max date for the employees, right?
In your scenario, do you want to get the max date for all the employees or for each employee? In MDX, we have the Max function to achieve your requirement. You can refer to Naveen's link or the link below to see the details.
http://www.sqldbpros.com/2013/08/get-the-max-date-from-a-cube-using-mdx/
If this is not what you want, please provide us more information about the structure of you cube, so that we can make further analysis.
Regards,
Charlie Liao
TechNet Community Support -
How to get current date for posting date
hi,
how to get current date for posting date ? any sample code ?
ThanksHi......
Use
Select getdate()
for current date.......
Regards,
Rahul -
How to get the date for the last day of a week?
Is there a easy way to get the date for the last day of week?
eg a week starts on monday and end on sunday
January 11, 2005 is the start date for the week
January 17, 2005 is the end date for the week
or
say
February 26, 2003 is the start date for the week
March 5, 2003 is the end date for the week
I just need a simple way of figuring that out....
I figured out how to get the start date for the week but just can't get the latter..
formatting of the date is not of a concern.. that I know how to do
thanks in advanceHow about something like the following?
Calendar someDay = new GregorianCalendar(2005,0,11);//2005 Jan, 11
//Note above that January is 0, not 1, as counting starts from 0.
someDay.add(Calendar.DAY_OF_MONTH,6); //add 6 days
java.util.Date lastDayOfWeek = someDay.getTime();
//If someDay was the start of a week, lastDayOfWeek should now be
//the last day of that week.
System.out.println(lastDayOfWeek.toString() ); -
Hi All,
I have a simple query which is below:-
Declare @reportdate date
set @reportdate= (DATEADD(dd,-5,getdate()))
select * from dbo.Table
where date IN (@reportdate)
I need this query to pull the data for the last 3rd business day .So lets say today is monday then i need the data for last week wednesday which is 3 business days back from monday, if today is a tuesday it would be for last thursday ( as 3 business days for
tuesday would be thursday). But if today is wednesday then i need to be last 3rd business day which is last friday and i also need to get the data for saturday and sunday.
Can someone please help me how cani change my filter to do this?
Please let me know if i am still unclear.
ThanksHi SqlDev12,
Based on my understanding on your requirement, you can reference the below sample.
CREATE TABLE BusinessTable
Bdate DATE,
Wd VARCHAR(10)
;WITH Cte(DT,WD) AS
SELECT CAST('20150401' AS DATE),DATENAME(WEEKDAY,CAST('20150401' AS DATE))
UNION ALL
SELECT DATEADD(DAY,1,DT),DATENAME(WEEKDAY,DATEADD(DAY,1,DT)) FROM Cte
WHERE DT<GETDATE()
INSERT INTO BusinessTable SELECT * FROM Cte
SELECT * FROM BusinessTable
SET DATEFIRST 7 -- Set Sunday as the first day of a week
DECLARE @givenDay DATE ='20150415' --Wednesday
SELECT * FROM BusinessTable
WHERE Bdate BETWEEN
--For Monday and Sunday, select last wednesday
(CASE WHEN DATEPART(WEEKDAY,@givenDay) IN(1,2) THEN DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay)-1,0))
--For Tuesday and Wednesday, last week's Thursday and Friday
WHEN DATEPART(WEEKDAY,@givenDay) IN(3,4) THEN DATEADD(DAY,-5,@givenDay)
--For Thursday and Friday, current week's Monday and Tuesday
WHEN DATEPART(WEEKDAY,@givenDay) IN(5,6) THEN DATEADD(DAY,-3,@givenDay)
--For Saturday, current week's Wednesday
ELSE DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay),0)) END)
AND
(CASE WHEN DATEPART(WEEKDAY,@givenDay) IN(1,2) THEN DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay)-1,0))
WHEN DATEPART(WEEKDAY,@givenDay) IN(3) THEN DATEADD(DAY,-5,@givenDay)
WHEN DATEPART(WEEKDAY,@givenDay) IN(4) THEN DATEADD(DAY,-3,@givenDay)
WHEN DATEPART(WEEKDAY,@givenDay) IN(5,6) THEN DATEADD(DAY,-3,@givenDay)
ELSE DATEADD(DAY,2,DATEADD(WEEK,DATEDIFF(WEEK,0,@givenDay),0)) END)
DROP TABLE BusinessTable
If you have any feedback on our support, you can click
here.
Eric Zhang
TechNet Community Support -
How can i download or open email attachments on iphone 6
Hi,
How can I download or open email attachments on my iphone 6. attachments like excel, word or pdf files.
BichitraHello Bichitra84,
You should be able download and view most attachments from within the Mail app on your iPhone. All you would need to do is tap on the attachment to download it and then tap it again to view it. Take a look at the article below for more information.
iOS: Sending and receiving emails
https://support.apple.com/en-us/ht1666
Regards,
-Norm G. -
How to get meta data of business objects in BOR
i need to get all the meta data information of business objects present in BOR.
for example purchase order BUS2012
1. I need to get for example the attributes information how to get it?
2. if business object contains further child business objects then how to get attributes of those child business objects also?
I am writing ABAP code, i want to retrieve all attributes with help of ABAP program .
any ideas?Hi..
You have to use SWC_GET_ELEMENT CONTAINER '( string name of your attribute)' your_attribute.
All attributes are part of container issue.. SWC_GET_ELEMENT command can give you these values.
Hope to help... -
How to get Meta Data Extension value?
Hello,
I created a new property in KM and set "Meta Data Extension" field that points to some bundle class file for Labels for this property.
How can I get the value of this "Meta Data Extension" field or, to be more exactly, this bundle class in my property renderer code?
I'll be very much appreciated for your help.Hello Sergei,
IMetaName getLabel will give you the label out your bundle file if you've set the metadata extension and the bundle key in the metadata property configuration. There is no API that exposes the metadata extension information. It's only used inside the property configuration service.
For more information about how tho customize labels of KM attributes see the documentation:
<a href="http://help.sap.com/saphelp_nw04/helpdata/en/65/6fc63ed4027f6be10000000a114084/frameset.htm">Changing Labels for Properties</a>
Regards
Lars -
Get Meta Data for Structures used in RFCs
On Monday I asked in another thread, how to retrieve table meta data using RFCs (Get Table Meta Data with RFC)
Having a closer look on what information I got I realized, that this wasn't the exact information I was looking for, although the answers from Ferry have been very good.
What I am actually looking for isn't meta information of tables, but information about the "Associated Type" that is associated with every import, export, or table parameter of a function module.
If I double-click on one of those types in transaction se37 after choosing a function module, I get a wonderful overview about the structure including 'component', 'component type', 'data type', 'length', etc.
Is there an RFC I can call that gives me exactly this meta information by giving an associated type?
Best,
StefanThanks Glen
I had a look on the proposed function module.
The good thing, it gives me information about the parameter naming for example table name and field name.
But it won't give me more detailed information about the table and the field.
Nevertheless
RFC1::RFC_GET_NAMETAB seems to give me what I need. So your call for RFC1 and RFC2 was a good one.
Thanks again.
Stefan -
How to get committed date for each component after availability check
Hi,
When I use CO02 to check material availability, I can see committed date in missing part list and missing part overview for each component in production order. I save it and use CO03 to read missing part list again. The committed date is blank?! How to get the committed date for each missing part in production order?
Another question, committed date can be displayed in CO24(missing parts info system)? Thanks in advance!!Rita,
Please check that the PP avail. check has replensh lead time turned on. If RLT is turned off & there is no sufficient stock of material, then system can only committ date of 12/31/9999.
Once you turn on RLT, it will give you some date based on your configured avail check ( that looks at stock or purchase order or production order). That way if there is no sufficient stock of material to satisfy your order system will committ the worst case date which is the RLT.
On CO24 unfortunately there is no field for Committ date. Hence is it not possible to view commit date. You can only view Committ quantity.
i am sure this will help you. Else please come back.
thanks,
Ram -
How to get test data for BAPI_PO_CREATE?
Hi friends,
can anybody please tell me how to generate the test data for BAPI_PO_CREATE?Hi swetha,
Hi,
You could test this scenario with using the Test Message option from RWB.
Or else
You could design the scenario to get the response from BAPI.
i.e BAPI to XI to File or any other application that will be easily avaialble.
But you need receiver system for testing.
Refer the below link it may help you .
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6d8ca48cc8
Regards
Naveen. -
HOW TO GET ACTUAL DATE FOR A DATE TYPE ITEM
Hi
We want to get actual date(today) automatically to the date type item on our form page. I should be able to change it also.
thank you very much for help
ömer faruk akyüzlü
in Turkeyhi ömer faruk akyüzlü,
Make the Source Type as PL/SQL Expression or Function
and in the Source Value or Expression
enter SYSDATE Make the item as the date picker of the format whatever u want.
hope this helps u better.
bye
Srikavi. -
How to View Meta Data for a .fm File?
Running WinXP Pro, SP2 and FM 7.0.
Would like to view items such as a document's Dictionary and default zoom level. How can I get to this data?
Thanks,
DaveSave as MIF and get Graham Wideman's Mifbrowse tool at: http://www.grahamwideman.com/gw/tech/framemaker/mifbrowse.htm
Maybe you are looking for
-
"Hotel" wi-fi sharing single connection with multiple devices
Hi, Been reading lots of stuff on here over the last few days and bought 2 airport expresses the other day but I can't seem to get them working quite how I need: Ok, hotel wi-fi charges per connection - the wi-fi is unsecured (no key, yikes, no encry
-
What are the import parameter for FM SWE_EVENT_CREATE
Hello all, I want to use the function module SWE_EVENT_CREATE in order to create an event in order to execute a process chain which is triggered by this event. Beside the EVENT I have also OBJTYPE and OBJKEY as import parameter, but I do not know wha
-
Does the same battery work for the T-60 and T-61
I can buy a Lenovo battery for a T-60 at Microcenter.....will that work in my T-61? Thanks
-
How to store a filepath in a database??
hi, Somewhere in my program i have to store a path that i'll need later to load an image into a label at runtime. But, when i try to store it, in mysql, it doesn't take the escape character, i mean if i try to store "e:\mydocs", my fuction call only
-
What FTP servers can I use and what is the URL of it. Help me! Due on Wed.
I want to up load my website but I do not know what FTP server to use. I find a FTP server but not know what's the URL.