How to filter datagridview by using DatetimePicker
Hi all I have a gridview and some data in it ,but I want to filter by date I have startTime and EndTime which are thesame, ideally I would like user to click on say 04/05/2015 items for that day shows up ,but I have been struggling with it now can get it
to suit my purpose, find below is my Datetimepicker method Please note I am using an access DB to retrieve data.,what are my doing wrong thanks in advance?
string strSql = String.Format("SELECT * FROM Computers WHERE StartTime >= #{0:MM/dd/yy hh:mm}# AND EndTime <=#{0:MM/dd/yy hh:mm}#", dt.ToString("MM/dd/yy hh:mm"));
Lukaas Njie
Is your Datagridview using a DataTable as the source. It would be easier to filter the datatable. Is the data a string object or a datetime object?
You string statement should look like the following
string strSql = String.Format("SELECT * FROM Computers WHERE StartTime >= #{0}# AND EndTime <=#{0}#", dt.ToString("MM/dd/yy hh:mm"));
{0} is the first parameter which is already a string : dt.ToString("MM/dd/yy hh:mm")
jdweng
Similar Messages
-
How to filter datagridview from 3 textboxes?
hey, would you help me
so, i have a form and connects to mdb database.
this is my code
Imports System.IO
Imports System.Data.OleDb
Public Class Form1
Private DBPath As String
Private conn As OleDbConnection
Private adapter As OleDbDataAdapter
Private dtMain As DataTable
Public Sub New()
InitializeComponent()
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As EventArgs) Handles MyBase.Load
DBPath = Application.StartupPath + "\db.mdb"
If Not File.Exists(DBPath) Then
Dim cat As New ADOX.Catalog()
cat.Create(Convert.ToString("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=") & DBPath)
cat = Nothing
End If
conn = New OleDbConnection(Convert.ToString("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=") & DBPath)
conn.Open()
Try
Using cmd As New OleDbCommand("CREATE TABLE [Table_1] ([id] COUNTER PRIMARY KEY, [text_column] MEMO, [int_column] INT);", conn)
cmd.ExecuteNonQuery()
End Using
Catch ex As Exception
If ex IsNot Nothing Then
ex = Nothing
End If
End Try
Using dt As DataTable = conn.GetSchema("Tables")
For i As Integer = 0 To dt.Rows.Count - 1
If dt.Rows(i).ItemArray(dt.Columns.IndexOf("TABLE_TYPE")).ToString() = "TABLE" Then
ComboBoxTables.Items.Add(dt.Rows(i).ItemArray(dt.Columns.IndexOf("TABLE_NAME")).ToString())
End If
Next
End Using
End Sub
Private Sub button1_Click(ByVal sender As Object, ByVal e As EventArgs) Handles Button1.Click
If ComboBoxTables.SelectedItem Is Nothing Then
Return
End If
adapter = New OleDbDataAdapter("SELECT * FROM [" + ComboBoxTables.SelectedItem.ToString() + "]", conn)
Dim builder = New OleDbCommandBuilder(adapter)
dtMain = New DataTable()
adapter.Fill(dtMain)
DataGridView1.DataSource = dtMain
End Sub
End Class
and now i have 4 textbox and 4 column table of database.
for example, this is my table :
and if i type :
textbox 1 : "1"
textbox 2 : "2"
textbox 3 : "1" then i press button2.
the result is textbox4 display : "C"
other example, if i type textbox1 : "3", textbox2 : "3", textbox3 : "2" then textbox4 diplay "J".
of course, if i type textbox1 : "3", textbox2 : "3", textbox3 : "2" then i'll get msgbox "max for column 2 is 2" or
if i type textbox1 : "3", textbox2 : "4", textbox3 : "2" i'll get msgbox "max of column 1 is 3"
well, now im stuck, how to filter this.
thanks before. sorry for bad english.Hello,
The following uses Lamda and LINQ to query three text box controls where each one has a unique tag value, TextBox1.Tag = 1, TextBox2.Tag = 2, TextBox3.Tag =3. The Tag is used to dictate the order of the columns in the where condition.
In values, a where condition is used to determine any TextBox controls with Text then in the select I create a condition suitable for use in the SQL SELECT. In the variable WhereClause the conditions are combined. There is one or more conditions they are
appended to the SQL statement.
Now if we have to deal with columns of type string we need to surround them in apostrophes which opens up a can or worms if a string contains apostrophes so food for thought.
Code suitable for VS2012 or higher, for VS2010 line continuation is needed.
''' <summary>
''' Each TextBox (three of them) have their tag set to 1,2,3 for ordering columns
''' in the where clause.
''' The Where conditions are using "and", you can also do "or" instead
''' </summary>
''' <remarks></remarks>
Public Class Form1
Private Sub Button1_Click(sender As Object, e As EventArgs) _
Handles Button1.Click
Dim SelectStatement As String = "SELECT * FROM SomeTable"
Dim Values = Me.Controls.OfType(Of TextBox).Where(
Function(tb) Not String.IsNullOrWhiteSpace(tb.Text)).Select(
Function(tb)
Return New Item With
.Index = CInt(tb.Tag),
.Value = tb.Tag.ToString & " = " & tb.Text
End Function).ToList.OrderBy(Function(item) item.Index)
Dim WhereClause = String.Join(" and ",
(From T In Values Select T.Value).ToArray)
If Not String.IsNullOrWhiteSpace(WhereClause) Then
SelectStatement &= " WHERE " & WhereClause
Else
' Nothing to append
End If
Console.WriteLine(SelectStatement)
End Sub
End Class
''' <summary>
''' Strong type data in the select part of the
''' lambda statement above
''' </summary>
''' <remarks></remarks>
Public Class Item
Public Property Index As Integer
Public Property Value As String
Public Sub New()
End Sub
End Class
Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. -
How to filter Groupwise records using custom fields?
I am consuming the Groupwise web service and want to search
the appointments based on value provided for a custom field. All
the other searches (date, subject, message) are working fine. The
only thing that does not work is search on the custom field. If I
search on the Custom field the service returns all records.
Following is the excerpt of the code. CFGWID is the field
that is sent to groupwise with an application generated value. I am
able to query the field but cannot filter appointments using the
CFGWID field.
<filter>
<elements type="FilterGroup">
<element type="FilterEntry">
<op xsi:type="xsd:string">eq</op>
<custom xsi:type="xsd:custom">cfgwid</custom>
<value
xsi:type="xsd:string">#arguments.AppMsgID#</value>
</element>
</elements>
</filter>
At this time there is only one entry in this filter. Any
ideas?PS0510 wrote:
> I am consuming the Groupwise web service
First of all, "Groupwise web service"!? Please tell me more
about this.
I use Groupwise here and this sounds like an interesting
feature!
> and want to search the appointments based on value
provided for a custom field.
How are you searching the custom field? Are you accounting
for the name
space xsi: and xsd: values? There is a bit of quirkiness with
CFML xml
functionality when working with name spaces. I've always been
able to
work out these issues with a bit of Google searching. -
How to filter a recordset using a combo (ASP)
Hi.
I have my website in ASP linked to an Access database using DSN. It is working ok.
I need some help to make a filter in a recordset, but the filter is a combo box that any time that a value is choosed the data int he grid/table is also changed.
Here it is my code:
SELECT *
FROM qry_YTD
WHERE DirMan = MMColParam
ORDER BY id_fy DESC, tot desc
Please somebody help me.
Regards,
Marco
[Moved by moderator to the appropriate forum]Hi,
Thanks for your reply.
I don't really know how to do it.
Please explain me how to do it.
Thanks,
Marco -
HOW TO FILTER DIM VALUES USING LEVEL PARAMETER SCREEN BEFORE PRESENTATION
hello,
sorry but i did not understand your question - i don't know which objects is
the "Descriptor". Let me try to update you with some facts and a better example
of the situation - i will be also uploading some screen shots.
from the jdeveloper help we found the topic "Specifying the action for a step
object" which is very similar to what we want to perform. here follows the text
and also some comments from us:
Example: Using step actions Assume that a selection consists of the following
two steps:
Step A specifies the members: Boston, Chicago, and Denver
(comment: in our problem, step A is a selection of customers performed using
one of the 2 hierarchies of Customer dimension)
Step B specifies the members: Boston and Austin
(comment: in our problem, step B is another selection of customers performed
using the other hierarchy of Customer dimension)
Step B follows Step A.
The following list shows how the results of this selection differ depending
on the action that is
specified for Step B:
Step B action: SELECT -- Result: Boston and Austin (that is, only B is
included)
Step B action: ADD -- Result: Boston, Chicago, Denver, and Austin (that is,
the union of A and B is included)
Step B action: KEEP -- Result: Boston (that is, only members that are common
to both A and B are kept; also referred to as the intersection of A and B)
(comment: This is what we expect to have - the intersection of both customer
dimension selections goes to the row edge of the presentation)
Step B action: REMOVE -- Result: Chicago and Denver (that is, any members in
B are removed from the current selection )
how do i obtain this intersection ? is it possible to use this selection
combining both hierarchies ?
Please refer to the screen i will upload - it is the filter we need to apply.
the customer dimension has 2 levels above the leaf records in one hierarchy,
called "SETOR" and "ROTA" , and 3 levels in the other hierarchy, called
"SEGMENTO" , "CANAL" and "SUBCANAL"
thanks in advanceHi Prasad,
I got your note, you should not use Session variable syntax to call presentation variable.
you should use like @{AIC_PROJ_PLAT_SEQ_NO}
One more thing: first test the variable AIC_PROJ_PLAT_SEQ_NO value then try to pass to SP.
Hope this helps -
How to filter change pointers using BADI - BDCP_BEFORE_WRITE?
Hi,
We have a scenario where due to various loads lot of change pointers are getting generated. Now I want to delete the unwanted change pointers based on some condition.
Through this forum I figured out that we can use the BADI -> BDCP_BEFORE_WRITE and create an implementation in it to clear the change pointers based on our conditions.
But could anyone please tell me when does this BADI gets triggered? I tried various options by putting a break point in the implementation, in CHANGE_POINTERS_CREATE function module etc but couldnu2019t see my BADI getting called or triggered.
I have my code placed in the implementation of this BADI but doesnu2019t have any clue when it gets called. I assume being this a standard filter BADI it should be called of itu2019s own but how can I check whether my code works or not. Wonu2019t there be any Transaction code which when executed will trigger this BADI. Any help on this will be appreciated.
Thanks.Thanks again Amit. But still my question is at what event this BADI gets triggered.
Let me explain the code I have written.
LOOP AT change_pointers INTO lv_bdcpv.
lv_tabix = sy-tabix.
ws_c_objid = lv_bdcpv-cdobjid(18).
SELECT SINGLE cuobj klart obtab objek INTO t_inob FROM inob
WHERE cuobj = ws_c_objid AND
obtab NE 'KNA1' .
IF sy-subrc = 0.
DELETE change_pointers INDEX lv_tabix.
ENDIF.
ENDLOOP.
This is the code written so that I can get rid of all the change pointers that are written which are not relevant to Customer.
But I want to know how this BADI gets executed, at what event or at by which TCODE or program?? I tried to change some classification data and and it created entry in BDCPV but are not related to customer. So how can I get this BADI executed so that it deletes the entry from BDCPV table?
When I check the BDCPV table the entries are still there as unprocessed.
Hope I am clear with my question. Any help will be appretiated.
Thanks, -
How to filter in URL using NW04s WAD?
Greeting Web Template Gurus,
I am working in NW04s SP12 WAD (Web Application Designer) and I am trying to use the filtering criteria in my URL... <bwurl>&FILTER_IOBJNM=0PLANT&FILTER_VALUE=1000. I have brought in the Filter Pane in the Web template and when I run the Web Template in IE, I do not see where 0PLANT is being used.
Is there a setting in the Web Template I am missing, or a specific Command I need to be running to get this to work for me?
Regards,
AlexHello Alex,
Please try to pass the command using the Template ID and not using the Query,
for example
http://<server><port>/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=MMFG_M03_Q0088&FILTER_IOBJNM_1=MPLANT&FILTER_VALUE_1=3010
instead of using QUERY=MMFG_M03_Q0088, try WebTemplate as given below, it may help you
http://<server><port>/irj/servlet/prt/portal/prtroot/pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?template_id=yourTemplate&FILTER_IOBJNM_1=MPLANT&FILTER_VALUE_1=3010
See this page for more info
[Calling Parameterized Web Templates|http://help.sap.com/saphelp_nw04/helpdata/en/27/6c013a53271a05e10000000a11402f/content.htm]
Thanks
Chandran -
How to filter a table using column filter on a date field with time?
Hi,
I have a date field where I am inserting a date+time value, for example: 01/01/2012 09:30:00 So, I would like to filter an adf table using a column inputdate filter to filter only by date this field.
I was testing using formats but with no luck.
Any Idea?
Thanks,
jdev 11.1.2.3
Edited by: jhon.carrillo on Oct 29, 2012 12:23 AMThen, try to add another attribute in your SELECT VO statement, which truncates the original date_and_time field:
SELECT.... TRUNC(DATE_AND_TIME) as truncated_dateAfter that, put reference to that attribute in the filter facet, as follows
<f:facet name="filter">
<af:inputDate value="#{vs.filterCriteria.TruncatedDate}" id=.../>
</facet>Do not forget to add the TruncatedDate attribute in the <tree...> binding in the pageDef, along with others VO attributes. Do that manually. -
How to filter complex data using pl/sql
Hello,
i have to filter some data from the table with 1millions rows in it.
here the requirement
for example table is TEST
id type
1 a
1 a
1 b
2 c
33 b
33 b
33 c
33 d
5 c
5 c
now i just want to display the results which contains type c only if id is with also connected other than c than i dont want to dislplay that results
so my result will look like .here i dont want to disply id 33 because some the id with 33 are connected with type other than c.
id type
2 c
5 c
so can please give me idea to make a query on that table
thanks in advancewith t as (
select 1 id,'a' type_cd from dual union all
select 1 id,'a' type_cd from dual union all
select 1 id,'b' type_cd from dual union all
select 2 id,'c' type_cd from dual union all
select 33 id,'b' type_cd from dual union all
select 33 id,'b' type_cd from dual union all
select 33 id,'c' type_cd from dual union all
select 33 id,'d' type_cd from dual union all
select 5 id,'c' type_cd from dual union all
select 5 id,'c' type_cd from dual
select id,
type_cd
from (
select id,
type_cd,
count(distinct type_cd) over(partition by id) cnt,
row_number() over(partition by id,type_cd order by 1) rn
from t
where type_cd = 'c'
and cnt = 1
and rn = 1
ID T
2 c
5 c
SQL>SY. -
How to filter values using presentation varible if it is using a multiselec
Hi Gurus,
Could you pls suggest me here.
I have a requirement like my OBIEE 10G version report is not filtering the values when we select any value in Dashboard prompt.
I tried to create a presentation varible in prompt for filtering but for prompt under control it is given an MULTI SELECT.
i need to filter the values .now though we select any value in prompt ,it is not picking any value.
How to filter the values using MULTI SELECT Here.Please suggest me here .
Regards,
SKHi User,
In, the physical layer go that column and change datatype from double to int and save the rpd.
This should resolve your issue.
Even, it is not required to modify or use cast function to change datatype.
Else,
Change the datatype of column in the Business layer.
This should resolve your issue.
Assign some points if this helps you :) -
How to edit a datagridview/textboxes using tableadapters in c# and sql
I am wondering what is the best way to edit a database that has multiple tables.
(Section 1) I have a Administration, Teacher and Student table that is linked up with the Person table which has a Primary Key.
The Person table consists of the general information of the person.
The Student table consists of information about the student; student ID and qualification code.
The Teacher table consists of information about the teacher; teacher ID, Reg No and password.
The Administration table consists of information about the admin; admin ID, Role and password.
As the Primary Key in the Person table is the ID, I have linked up with each of the other's table with their appropriate ID.
(Section 2) I have a Course and Qualification table that is linked up with the Student and Teacher table as well as each other.
The course table constists of the Course ID, Course Name ... and Teacher ID.
The Qualifications table consists of Qualification Code, Qualification Name and Duration.
There is a section where I have to create a view which shows just the Student ID, Course ID and has the Student's Marks in it.
I have got a combobox which then links up with the dgv(datagridview).
I have got insert and delete methods for both sections. Here is an example of the insert method into the Admin/Person table.
try
personTableAdapter.Insert(aFirstName.Text, aSurname.Text, Convert.ToDateTime(aDoB.Text), aPhone.Text, aAdd1.Text, aAdd2.Text, aSuburb.Text, aState.Text, aPostcode.Text, AdminType.Text);
administrationTableAdapter.Insert(Convert.ToInt32(aAID1.Text), aRole.Text, aPassword.Text);
MessageBox.Show(aFirstName.Text + " " + aSurname.Text + " has been added. Your ID is " + aAID1.Text);
this.personTableAdapter.Fill(this._30002195DataSet.Person);
this.administrationTableAdapter.Fill(this._30002195DataSet.Administration);
catch (Exception ex)
MessageBox.Show(ex.Message);
Here is an example of the delete method in the Admin/Person table.
try
personTableAdapter.Delete(Convert.ToInt32(aID.Text), aFirstName.Text, aSurname.Text, Convert.ToDateTime(aDoB.Text), aPhone.Text, aAdd1.Text, aAdd2.Text, aSuburb.Text, aState.Text, aPostcode.Text, AdminType.Text);
administrationTableAdapter.Delete(Convert.ToInt32(aAID.Text), aRole.Text, aPassword.Text);
MessageBox.Show("Person Deleted");
this.personTableAdapter.Fill(this._30002195DataSet.Person);
this.administrationTableAdapter.Fill(this._30002195DataSet.Administration);
catch (Exception)
MessageBox.Show("Cannot delete Person");
Those methods above are working fine, what I'm having problems with, is with the editing/updating part.
I have tried a few things and haven't worked.
Here's an example of an edit, while trying to use textboxes.
personTableAdapter.Update(aFirstName.Text, aSurname.Text, Convert.ToDateTime(aDoB.Text), aPhone.Text, aAdd1.Text, aAdd2.Text, aSuburb.Text, aState.Text, aPostcode.Text, AdminType.Text, Convert.ToInt32(aID.Text), aFirstName.Text, aSurname.Text, Convert.ToDateTime(aDoB.Text), aPhone.Text, aAdd1.Text, aAdd2.Text, aSuburb.Text, aState.Text, aPostcode.Text, AdminType.Text);
administrationTableAdapter.Update(aRole.Text, aPassword.Text, Convert.ToInt32(aAID.Text), aRole.Text, aPassword.Text);
personBindingSource.EndEdit();
administrationBindingSource.EndEdit();
administrationTableAdapter.Update(_30002195DataSet.Administration);
personTableAdapter.Update(_30002195DataSet.Person);
MessageBox.Show("Person Updated");
this.personTableAdapter.Fill(this._30002195DataSet.Person);
this.administrationTableAdapter.Fill(this._30002195DataSet.Administration);
Here I tried to do the new values/original values, while trying to use textboxes
personTableAdapter.Update(aFirstName.Text, aSurname.Text, Convert.ToDateTime(aDoB.Text), aPhone.Text, aAdd1.Text, aAdd2.Text, aSuburb.Text, aState.Text, aPostcode.Text, AdminType.Text, Convert.ToInt32(aID.Text), aFirstName.Text, aSurname.Text, Convert.ToDateTime(aDoB.Text), aPhone.Text, aAdd1.Text, aAdd2.Text, aSuburb.Text, aState.Text, aPostcode.Text, AdminType.Text);
administrationTableAdapter.Update(aRole.Text, aPassword.Text, Convert.ToInt32(aAID.Text), aRole.Text, aPassword.Text);
Trying to use the example through the mdsn, this is trying to use the datagridview.
this.Validate();
personBindingSource.EndEdit();
teacherBindingSource.EndEdit();
_30002195DataSet.PersonDataTable deletedPerson = (_30002195DataSet.PersonDataTable)
_30002195DataSet.Person.GetChanges(DataRowState.Deleted);
_30002195DataSet.PersonDataTable newPerson = (_30002195DataSet.PersonDataTable)
_30002195DataSet.Person.GetChanges(DataRowState.Added);
_30002195DataSet.PersonDataTable modifiedPerson = (_30002195DataSet.PersonDataTable)
_30002195DataSet.Person.GetChanges(DataRowState.Modified);
try
if (deletedPerson != null)
personTableAdapter.Update(deletedPerson);
teacherTableAdapter.Update(_30002195DataSet.Teacher);
if (newPerson != null)
personTableAdapter.Update(newPerson);
if (modifiedPerson != null)
personTableAdapter.Update(modifiedPerson);
_30002195DataSet.AcceptChanges();
catch (System.Exception ex)
MessageBox.Show(ex.Message);
finally
if (deletedPerson != null)
deletedPerson.Dispose();
if (newPerson != null)
newPerson.Dispose();
if (modifiedPerson != null)
modifiedPerson.Dispose();
MessageBox.Show("Updated");
this.personTableAdapter.Fill(this._30002195DataSet.Person);
this.teacherTableAdapter.Fill(this._30002195DataSet.Teacher);
Now because I am trying to edit a certain user which requires the Person table along with the other table, it just doesn't seem to work at all.
With the datagridview, I made a new view in the sql and it has both tables combined and shows when I bring it out from the datasource, but where I go into the dataset builder and try to create an update method, all I get is the "Update" not what
I would get when I created the update method from just the person's table by itself.
Can someone provide me with an example or help me out someway because I am struggling with this, I can't seem to find much information at all.
Thanks.I have used the designer to create a new datagridview, when using that dgv it doesn't want to update to the relevent tables in my database. So say you have the person and admin dgv together and you need to update it, how would you get it to work
to the database? I did just end up using 2 seperate dgv's but it won't get accepted.
try
_30002195DataSetTableAdapters.PersonTableAdapter personTableAdapter = new _30002195DataSetTableAdapters.PersonTableAdapter();
// person table
_30002195DataSetTableAdapters.AdministrationTableAdapter administrationTableAdapter = new _30002195DataSetTableAdapters.AdministrationTableAdapter();
// admin table
ViewSetTableAdapters.AdminViewTableAdapter adminviewTableAdapter = new ViewSetTableAdapters.AdminViewTableAdapter();
// tried using this for both the admin/person tables together but didn't work?
this.Validate();
adminViewBindingSource.EndEdit(); //both
personBindingSource.EndEdit();
administrationBindingSource.EndEdit();
personTableAdapter.Update(_30002195DataSet.Person);
administrationTableAdapter.Update(_30002195DataSet.Administration);
MessageBox.Show("Updated");
this.personTableAdapter.Fill(this._30002195DataSet.Person);
this.administrationTableAdapter.Fill(this._30002195DataSet.Administration);
catch (Exception ex)
MessageBox.Show(ex.Message);
So, how would I write the code so it edits both the tables from just the one dgv?
Hello,
Based on these words above, it seems that the key issue is that you want to display and edit the data of two tables with a single datagridview, right? If so, I am afraid that I would recommend you consider using code other than designer to get that done.
Are these table store in the same database?
If so, then you could consider getting that done with ADO.NET, we could getting the data of multiple table with sql query. You could consider
using sql query to get all data from multiple tables
of database, and then fill them to a single datatable.
For query issue, you could consider getting help from
Transact-SQL forum.
If not, then we need to create update query for both table and execute these queries with sperate connection strings.
Regards,
Carl
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to filter emails using sender email adapter
Hi,
Does any one know how to filter emails of mail server using Sender email adapter(POP3 protocol ) in PI .
To make it more clear let us assume that there are 10 emails in the email server then 3 emails should be fetched for Interface A , 3 emails Should be fetched for Interface B and remaining 4 emails should be ignored and left in the email server as it is , the reason for this is that it is not related with the Interface A or Interface B. Any suggestion or solution will be much appreciated.
Thanks & Regards
PrabhatHi,
I guess you didnt get my requirement clearly. My requirement is how to filter emails from email server using sender Email adapter in POP3 protocl and pass it to relevant Interface.
For ex: suppose email no.1 is related to Interface A then it should go to Interface A
or email no. 2 is related to Interface B then it should go to Interface B
or if email no. 3 is junk mail then it should avoid deleting that email and leave that email as it is
The problem/challenge here is that email adapter of Interface A or B reads it first and deletes the email message so it is not available for the Interface A or B.
So I just want that sender email adapter should filter it before deleting email from the email server.
Can you provide some solution for this?
Thanks & Regards
Prabhat -
How to filter Key Figures - not using the GUIDs
An example How to filter Key Figures may look like this:
http://XXX.com:8000/sap/bw/BEx?sap-language=DE&bsplanguage=DE&CMD=LDOC&TEMPLATE_ID=XXX&FILTER_IOBJNM=41F68RV4ZB5VYSARODYU70CAQ&FILTER_VALUE=41F68SAI18DB01DO023IR49QA
The GUIDs consume the space in the URl. Is there a way to work with an alias.
To use the technical name of a Key Figure defined in the Query does not work.Hi Cherie,
This is exactly the type of problem that I'm currently trying to figure out. I'm trying to following your solution but I'm not clear on how you actually achieved this in you last note. I want to dynamically select actuals/budget column fields based on what period I enter. I thought about creating 12 separate RKF fields for actuals and 12 separate RKF fields for the budget reforecast and outputting these all and then doing some VBA to hide the fields not required based on which period was selected... how is your variable ZFYAPER7 defined and calculated?
Cheers -
How to filter CDO export on Date Modified using Bulk API
I'm using the Bulk API 1.0 and E10, and I'm trying to export custom data object (aka CDO, Data Card) records that have been modified recently. I can get it to work using another date field, but I can't figure out what the field name or ID is for the modified date. I've tried C_DateModified, but that returned an generic error message. I tried to query the custom object to get all fields, but that just returns the custom fields. Any ideas?
By the way, the filter I'm using is something like this: filter":{"filterRule":"valueGreaterThanOrEqualToComparisonValue","value":"{{CustomObject[53].Field[???]}}","comparisonValue":"2014-02-01 00:00:00"}
Thanks!Hello,
I was trying all the names in this post and kept getting the
constraint: "Must be a reference to an existing object."
error message. What exactly is the syntax to filter by modified date for customObjects in BulkAPI 2.0? I'm using E10
I tried both
"filter":"'{{CustomObject[5].Field(Date_Modified1)}}' >= '2014-09-20’"}
and
"filter":{"filterRule":"valueGreaterThanOrEqualToComparisonValue","value":"{{CustomObject[5].Field(Date_Modified1)}}","comparisonValue":"2014-09-01 00:00:00"} -
In BI how to filter the selection options based on inputs on top field
Hi Friends,
In BI, How to filter the selection options based on inputs on top field.
The system should automatically filter the lower level drop downs based on the selection of a higher level.
For e.g. :
If a user selects a Country then the States drop down should only display the State's belongs to the Country. Similarly when a State is selected, the District drop down should display only those District's belongs to the State.
Thanks in Advance.
Regards
Jayaram MHi Anil,
Thanks for reply but I couldn't use Compounding Characteristic here. Need some other solution.
Regards
Jayaram M
Maybe you are looking for
-
Performance tuning for String operation in Field routine
Dear Experts, I am writing a ABAP routine in field level for capturing an occurence of a string. The string may occur in anny of the values in itab. The ITAB has around 100 thousand records and the source package 400 thousand records. My coding goe
-
Where can I see what devices are connected to my Airport Extreme?
I just switched from a Belkin wireless-g router to the Airport Extreme (802.11n). With my Belkin router, when I entered the address "192.168.2.1", I was taken to a menu where, among other things, I could view all connected devices. How do I do that w
-
White screen of death ipod 4th gen
I got the white screen of death I have tried reseting/ turning it off but it wont work. i even tried holding the volume button DOES not work. I tried to restore it in my computer but i need to enter a passcode to restore but since i cant see anything
-
Dear All, I have a Power Mac with the ATI Radeon HD 5770 card, I need to connect three monitors to that card. The main one and I need the second and third monitor having the same video or image, I already bought a DVI splliter and did not work, and a
-
No img alt="text" display??
I have tried to search this, but every search has returned too many posts, so I apologize in advance. Have I made some error? For some reason my Safari does not display alt="text" when images are turned off? This is *what is supposed to happen* (see